improve display while popup loads

This commit is contained in:
Ajay
2022-06-02 21:08:34 -04:00
parent 96173dd901
commit 3d9221eb8d
8 changed files with 43 additions and 45 deletions

View File

@@ -1694,7 +1694,7 @@ function openInfoMenu() {
const frame = document.createElement("iframe");
frame.width = "374";
frame.height = "500";
frame.onload = () => frame.contentWindow.postMessage("", "*");
frame.addEventListener("load", () => frame.contentWindow.postMessage("", "*"));
frame.src = chrome.extension.getURL("popup.html");
popup.appendChild(frame);