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:
parent
474e929638
commit
1b76df7cbc
@ -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);
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user