mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-12 11:30:01 -04:00
Fix settings UI blocking the screen on load; other minor changes
This commit is contained in:
parent
7307bbbd84
commit
aed0911e70
3 changed files with 12 additions and 6 deletions
|
@ -235,10 +235,10 @@ xx xx
|
|||
const waitForDocument = new Promise(resolve => {
|
||||
document.documentElement.appendChild(exampleIFrame);
|
||||
exampleIFrame.addEventListener("load", () => {
|
||||
result = exampleIFrame.contentWindow.document.title === website.title;
|
||||
resolve();
|
||||
result = exampleIFrame.contentWindow.document.title === website.title;
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
});
|
||||
exampleIFrame.src = url;
|
||||
exampleIFrame.style.display = "none";
|
||||
await waitForDocument;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue