1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-06-02 03:18:06 +02:00

Fixed origin display in blobIframe

This commit is contained in:
kkapsner 2020-01-06 14:55:11 +01:00
parent 4020ba1ebd
commit 16fb042335

View File

@ -7,7 +7,10 @@
document.getElementById("code").textContent = iframeCode; document.getElementById("code").textContent = iframeCode;
const blob = new Blob([iframeCode], {type: "text/html"}); const blob = new Blob([iframeCode.replace(
"const origin = \"data URL iframe\";",
"const origin = \"blob iframe\";"
)], {type: "text/html"});
const newurl = window.URL.createObjectURL(blob); const newurl = window.URL.createObjectURL(blob);
document.getElementById("blobIframe").src = newurl; document.getElementById("blobIframe").src = newurl;
}()); }());