Skip to content

Commit cd01cf9

Browse files
save file
1 parent ae38314 commit cd01cf9

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

utils/editors/js-console/html/output-console/v3.0/output-console-v3.0.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
shadow = host.shadowRoot;
170170

171171

172-
chk.isolate = $.chkbox(shadow,'#isolate');
172+
chk.isolate = $.chkbox(shadow,'#isolate',btn.isolate);
173173

174174
chk['allow-modals'] = $.chkbox(shadow,'#allow-modals');
175175
chk['allow-popups'] = $.chkbox(shadow,'#allow-popups');
@@ -194,6 +194,19 @@
194194
}//initdom
195195

196196

197+
//:
198+
199+
200+
btn.isolate = function(chk){
201+
202+
if(chk.checked){
203+
sandbox_url += '?isolate';
204+
}else{
205+
var i = ssandbox_url.indexOf('?');
206+
sandbox_url = sandbox_url.slice(0,i);
207+
}
208+
209+
}//isolate
197210

198211

199212
btn.console.clear = function(){

0 commit comments

Comments
 (0)