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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user