mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 12:50:36 +01:00
Fixed origin display in blobIframe
This commit is contained in:
parent
4020ba1ebd
commit
16fb042335
@ -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;
|
||||||
}());
|
}());
|
Loading…
x
Reference in New Issue
Block a user