mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-15 14:09:36 +02:00
"removed iframe" method needs to provide a cleanup
This commit is contained in:
parent
474e929638
commit
1b76df7cbc
1 changed files with 4 additions and 1 deletions
|
@ -96,7 +96,10 @@ const iframeAPI = function(){
|
||||||
return new Promise(function(resolve){
|
return new Promise(function(resolve){
|
||||||
window.setTimeout(function(){
|
window.setTimeout(function(){
|
||||||
console.log("window of iframe in timeout", iframeWindow);
|
console.log("window of iframe in timeout", iframeWindow);
|
||||||
resolve(iframeWindow);
|
resolve({
|
||||||
|
window: iframeWindow,
|
||||||
|
cleanup: function(){}
|
||||||
|
});
|
||||||
}, 1000);
|
}, 1000);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue