Skip to content

Commit b3b47fe

Browse files
save file
1 parent 9245263 commit b3b47fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utils/editors/html-editor/html/output-html/v2.0/output-html-v2.0.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878

7979
var hldr;
8080
var iframe;
81+
var def_sandbox;
8182
var glass;
8283

8384

@@ -112,6 +113,7 @@
112113

113114
hldr = $(shadow,'#hldr');
114115
iframe = $(shadow,'iframe');
116+
def_sandbox = iframe.getAttribute('sandbox');
115117
glass = $(shadow,'#glass');
116118

117119

@@ -158,7 +160,7 @@
158160

159161
obj.srcdoc = function(html){
160162

161-
var attr = iframe.getAttribute('sandbox');
163+
var attr = def_sandbox;
162164
console.log(attr);
163165
var tokens = new Set(attr.split(/\s+/).filter(Boolean));
164166
console.log(chk['allow-scripts']);

0 commit comments

Comments
 (0)