mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-22 18:15:47 +02:00
Move edit-design focus/blur events to ready() to avoid errors
This commit is contained in:
parent
f9704d2836
commit
801c9eba2d
@ -292,9 +292,6 @@ enabled(){
|
||||
}
|
||||
};
|
||||
|
||||
$(window).on("focus", this.onWindowFocusEvent);
|
||||
$(window).on("blur", this.onWindowBlurEvent);
|
||||
|
||||
// css and layout injection
|
||||
this.resetDesign = () => {
|
||||
if (this.css){
|
||||
@ -410,6 +407,10 @@ ready(){
|
||||
|
||||
this.onAppReady();
|
||||
|
||||
// optimization events
|
||||
$(window).on("focus", this.onWindowFocusEvent);
|
||||
$(window).on("blur", this.onWindowBlurEvent);
|
||||
|
||||
// layout events
|
||||
$(document).on("uiShowActionsMenu", this.uiShowActionsMenuEvent);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user