Skip to content

Commit 7f8e3f4

Browse files
save file
1 parent 3b65fd3 commit 7f8e3f4

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

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

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
<div id=glass></div>
5757
</div>
5858

59+
<web-console component></web-console>
60+
5961
</template>
6062

6163
<script>
@@ -83,7 +85,9 @@
8385

8486
//vars:-
8587

86-
var allow_same_origin = false;
88+
89+
var webconsole;
90+
8791

8892
var chk = {};
8993

@@ -101,6 +105,12 @@
101105

102106

103107
obj.init = async function(){
108+
109+
await mod.auto();
110+
111+
webconsole = mod['web-console'];
112+
113+
104114
}//init
105115

106116

@@ -125,10 +135,6 @@
125135

126136
hldr = $(shadow,'#hldr');
127137
iframe = $(shadow,'iframe');
128-
if(allow_same_origin){
129-
var attr = iframe.getAttribute('sandbox');
130-
attr += ' allow-same-origin';
131-
}
132138
def_sandbox = iframe.getAttribute('sandbox');
133139
glass = $(shadow,'#glass');
134140

0 commit comments

Comments
 (0)