mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 813789 - avoid console errors about _dynamicResizer being null. r=jaws
This commit is contained in:
parent
3adc3b27f8
commit
2dc7eec033
@ -396,8 +396,10 @@ let SocialFlyout = {
|
||||
iframe.addEventListener("load", function panelBrowserOnload(e) {
|
||||
iframe.removeEventListener("load", panelBrowserOnload, true);
|
||||
setTimeout(function() {
|
||||
SocialFlyout._dynamicResizer.start(panel, iframe);
|
||||
SocialFlyout.dispatchPanelEvent("socialFrameShow");
|
||||
if (SocialFlyout._dynamicResizer) { // may go null if hidden quickly
|
||||
SocialFlyout._dynamicResizer.start(panel, iframe);
|
||||
SocialFlyout.dispatchPanelEvent("socialFrameShow");
|
||||
}
|
||||
}, 0);
|
||||
}, true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user