1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-25 17:34:06 +02:00

Make sure the app is loaded before hooking account selectors

This commit is contained in:
chylex 2017-03-08 13:06:50 +01:00
parent 79f6df121b
commit 11a1423f76

View File

@ -497,6 +497,7 @@
// //
// Block: Swap shift key functionality for selecting accounts. // Block: Swap shift key functionality for selecting accounts.
// //
onAppReady.push(function(){
$(".js-drawer[data-drawer='compose']").delegate(".js-account-list > .js-account-item", "click", function(e){ $(".js-drawer[data-drawer='compose']").delegate(".js-account-list > .js-account-item", "click", function(e){
e.shiftKey = !e.shiftKey; e.shiftKey = !e.shiftKey;
}); });
@ -510,6 +511,7 @@
}); });
} }
}); });
});
// //
// Block: Work around clipboard HTML formatting. // Block: Work around clipboard HTML formatting.