We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae38314 commit cd01cf9Copy full SHA for cd01cf9
utils/editors/js-console/html/output-console/v3.0/output-console-v3.0.html
@@ -169,7 +169,7 @@
169
shadow = host.shadowRoot;
170
171
172
- chk.isolate = $.chkbox(shadow,'#isolate');
+ chk.isolate = $.chkbox(shadow,'#isolate',btn.isolate);
173
174
chk['allow-modals'] = $.chkbox(shadow,'#allow-modals');
175
chk['allow-popups'] = $.chkbox(shadow,'#allow-popups');
@@ -194,6 +194,19 @@
194
}//initdom
195
196
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
210
211
212
btn.console.clear = function(){
0 commit comments