mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-23 02:34:08 +02:00
Add a custom JS event when the old composer is activated
This commit is contained in:
parent
61af2ebc8b
commit
1056273c57
@ -477,6 +477,19 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//
|
||||||
|
// Block: Hook into composer event.
|
||||||
|
//
|
||||||
|
execSafe(function hookComposerEvents(){
|
||||||
|
$(document).on("uiDrawerActive uiRwebComposerOptOut", function(e, data){
|
||||||
|
return if e.type === "uiDrawerActive" && data.activeDrawer !== "compose";
|
||||||
|
|
||||||
|
setTimeout(function(){
|
||||||
|
$(document).trigger("tduckOldComposerActive");
|
||||||
|
}, 0);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
//
|
//
|
||||||
// Block: Add TweetDuck buttons to the settings menu.
|
// Block: Add TweetDuck buttons to the settings menu.
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user