Skip to content

Commit 4d1ae60

Browse files
committed
fix: safasri doesnt have urlParams.size object
1 parent cfd7693 commit 4d1ae60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/virtual-server-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if(!parentOrigin){
1313
} else if (!TRUSTED_ORIGINS[parentOrigin]) {
1414
alert("This page can only be embedded from trusted domains " + Object.keys(TRUSTED_ORIGINS));
1515
} else {
16-
if(urlParams.size !== 1){
16+
if(Array.from(urlParams.entries()).length !== 1){
1717
alert("virtual server iframe!! This page should not be loaded with URL params other than parentOrigin.");
1818
}
1919
function _getBaseURL() {

0 commit comments

Comments
 (0)