1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-14 03:15:49 +02:00

Fix idiot chromium being unable to figure out window size while loading guide

This commit is contained in:
chylex 2017-11-20 17:21:46 +01:00
parent 2c175b8d3a
commit 15bc6c1d73

View File

@ -72,6 +72,15 @@ var init = function(){
if (element && element.tagName === "SUMMARY"){
element.click();
element.scrollIntoView(true);
if (window.innerWidth === 0){
var ffs = function(){
element.scrollIntoView(true);
window.removeEventListener("resize", ffs);
};
window.addEventListener("resize", ffs);
}
}
}
};