mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-14 12:15:48 +02:00
Make selected theme an attribute in <html> for plugins
This commit is contained in:
parent
0e9094a19f
commit
225e6b369a
@ -195,12 +195,18 @@
|
||||
$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(){
|
||||
$TD.loadNotificationHeadContents(getNotificationHeadContents());
|
||||
}, 0);
|
||||
});
|
||||
|
||||
onAppReady.push(function(){
|
||||
document.documentElement.setAttribute("data-td-theme", TD.settings.getTheme());
|
||||
});
|
||||
|
||||
//
|
||||
// Block: Enable popup notifications.
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user