1
0
mirror of https://github.com/MatMoul/quickdial-webext.git synced 2026-02-26 04:27:48 +00:00

Fix iframe onload event positioning

This commit is contained in:
2026-02-25 22:48:17 +01:00
parent 5a8e8bb745
commit 9cab257540

View File

@@ -563,8 +563,8 @@ app.SiteInfos.fromFrame = function(url, callback){ // Retrieve infos from an ifr
iframe.style.position = 'absolute';
iframe.scrolling = 'no';
var content = xmlHttp.responseText.replace('<head>', '<head><base href="' + url + '">');
iframe.onload = function(){ pageLoaded(); }
document.body.appendChild(iframe);
iframe.onload = function(){ pageLoaded(); }
iframe.srcdoc = content;
setTimeout(function(){ pageLoaded(); }, 6000);
}