Skip to content

Commit 4e6c6ae

Browse files
Ignore blank sandbox attr
1 parent 632b8f9 commit 4e6c6ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

injected/src/features/page-context.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function getSameOriginIframeDocument(iframe) {
4242

4343
// Skip sandboxed iframes unless they explicitly allow scripts
4444
// Avoids: Blocked script execution in 'about:blank' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
45-
if (sandbox && sandbox.length > 0 && !sandbox.contains('allow-scripts')) {
45+
if (sandbox && !sandbox.contains('allow-scripts')) {
4646
return null;
4747
}
4848

0 commit comments

Comments
 (0)