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:
parent
2c175b8d3a
commit
15bc6c1d73
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user