Skip to content

Commit cb83e9f

Browse files
save file
1 parent 4c1501f commit cb83e9f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ <h4 slot=version>v3.0</h4>
278278
keydown.initdom();
279279
menu.add.style();
280280

281-
var btn = document.createElement('input');
281+
var btn = document.createElement('input');
282282
btn.type = 'button';
283283
btn.value = 'isolate';
284284
$(hdr.__host.shadowRoot,'#btns').append(btn);
@@ -396,12 +396,12 @@ <h4 slot=version>v3.0</h4>
396396
btn.isolate = function(){
397397

398398
var url = window.location.toString();
399-
400-
if(url.indexOf('?')!=-1){
401-
return;
399+
var i1 = url.indexOf('?');
400+
if(i1!=-1){
401+
url = urls.lice(0,i1);
402+
}else{
403+
url += '?isolate';
402404
}
403-
404-
url += '?isolate';
405405
window.location = url;
406406

407407
}//isolate

0 commit comments

Comments
 (0)