mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-28 09:15:46 +02:00
Allow detecting custom edit-design themes in analytics
This commit is contained in:
parent
7cf3f1d32c
commit
43f632b555
@ -243,6 +243,7 @@ enabled(){
|
|||||||
|
|
||||||
modal.find("[data-td-theme]").change(function(){
|
modal.find("[data-td-theme]").change(function(){
|
||||||
let theme = $(this).attr("data-td-theme");
|
let theme = $(this).attr("data-td-theme");
|
||||||
|
me.config._theme = theme;
|
||||||
|
|
||||||
if (theme === "black"){
|
if (theme === "black"){
|
||||||
me.config.themeOverride = theme;
|
me.config.themeOverride = theme;
|
||||||
@ -252,8 +253,6 @@ enabled(){
|
|||||||
me.config.themeOverride = false;
|
me.config.themeOverride = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
me.config._theme = theme;
|
|
||||||
|
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
if (theme != TD.settings.getTheme()){
|
if (theme != TD.settings.getTheme()){
|
||||||
$(document).trigger("uiToggleTheme");
|
$(document).trigger("uiToggleTheme");
|
||||||
|
Loading…
Reference in New Issue
Block a user