From 1b76df7cbc3687c3706a469621b45ff0ee858d9b Mon Sep 17 00:00:00 2001 From: kkapsner Date: Wed, 3 Jul 2024 20:58:17 +0200 Subject: [PATCH] "removed iframe" method needs to provide a cleanup --- test/iframeAPI.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/iframeAPI.js b/test/iframeAPI.js index f521891..9429f21 100644 --- a/test/iframeAPI.js +++ b/test/iframeAPI.js @@ -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); }); }