1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 12:50:36 +01:00

"removed iframe" method needs to provide a cleanup

This commit is contained in:
kkapsner 2024-07-03 20:58:17 +02:00
parent 474e929638
commit 1b76df7cbc

View File

@ -96,7 +96,10 @@ const iframeAPI = function(){
return new Promise(function(resolve){
window.setTimeout(function(){
console.log("window of iframe in timeout", iframeWindow);
resolve(iframeWindow);
resolve({
window: iframeWindow,
cleanup: function(){}
});
}, 1000);
});
}