extension code updated

This commit is contained in:
n4ze3m
2023-04-11 15:19:21 +05:30
parent 6bc176ef44
commit a3535bb5c5
6 changed files with 119 additions and 22 deletions

View File

@@ -88,10 +88,12 @@ const main = async () => {
} else if (event.data === "pageassist-html") {
console.log("pageassist-html");
let html = document.documentElement.outerHTML;
let url = window.location.href;
iframe.contentWindow.postMessage({
type: "pageassist-html",
html: html,
url: url,
}, "*");
}
});