Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
8chanAnon authored Sep 3, 2024
1 parent 48ef6b5 commit ea7d979
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install/inspector.htm
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,17 @@ <h2 style="margin:0 0 10px"><r_>Inspector</r_></h2>

var open_window = async (mode) =>
{
win = line.value.trim(); if (!mode || !win) { win = window.open (win, "inspect"); return; }
var url = line.value.trim(); if (!mode || !url) { win = window.open (url, "inspect"); return; }

win = '<!DOCTYPE html><html><body' +
url = '<!DOCTYPE html><html><body' +
' style="padding:0;margin:0;overflow:hidden"><iframe' +
' style="position:absolute;border:none;outline:none;width:100%;height:100%"' +
' sandbox="allow-scripts allow-same-origin allow-forms"' +
' src="' + win + '"></iframe></body></html>';

await fetch (host + "~wanna_scratch=iframe$.htm", { method: 'POST', body: win });
await fetch (host + "~wanna_scratch=iframe$.htm", { method: 'POST', body: url });

win = window.open (host + "~iframe$.htm", "inspect"); win.focus();
win = window.open (host + "~iframe$.htm", "inspect");
}

var inspect = function ()
Expand Down

0 comments on commit ea7d979

Please sign in to comment.