diff --git a/test/dataUrlTest.js b/test/dataUrlTest.js index 5eb483f..d46b361 100644 --- a/test/dataUrlTest.js +++ b/test/dataUrlTest.js @@ -7,7 +7,10 @@ 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); document.getElementById("blobIframe").src = newurl; }()); \ No newline at end of file