1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-18 15:15:48 +02:00

Make selected theme an attribute in <html> for plugins

This commit is contained in:
chylex 2017-06-19 16:18:48 +02:00
parent 0e9094a19f
commit 225e6b369a

View File

@ -195,12 +195,18 @@
$TD.loadFontSizeClass(name); $TD.loadFontSizeClass(name);
}); });
TD.settings.setTheme = appendToFunction(TD.settings.setTheme, function(){ TD.settings.setTheme = appendToFunction(TD.settings.setTheme, function(name){
document.documentElement.setAttribute("data-td-theme", name);
setTimeout(function(){ setTimeout(function(){
$TD.loadNotificationHeadContents(getNotificationHeadContents()); $TD.loadNotificationHeadContents(getNotificationHeadContents());
}, 0); }, 0);
}); });
onAppReady.push(function(){
document.documentElement.setAttribute("data-td-theme", TD.settings.getTheme());
});
// //
// Block: Enable popup notifications. // Block: Enable popup notifications.
// //