1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-01-08 20:54:49 +01:00
CanvasBlocker/test/dataUrlTest.js

13 lines
351 B
JavaScript
Raw Permalink Normal View History

(function(){
"use strict";
var iframeCode = atob(
document.getElementById("iframe").src.replace(/^.+base64,/, "")
);
document.getElementById("code").textContent = iframeCode;
var blob = new Blob([iframeCode], {type : 'text/html'});
var newurl = window.URL.createObjectURL(blob);
document.getElementById("blobIframe").src = newurl;
}());