Initial commit
This commit is contained in:
8
app/static/js/theme-loader.js
Normal file
8
app/static/js/theme-loader.js
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Lycostorrent - Chargement du thème
|
||||
* Ce script doit être chargé en premier pour éviter le flash de thème
|
||||
*/
|
||||
(function() {
|
||||
const savedTheme = localStorage.getItem('lycostorrent-theme') || 'dark';
|
||||
document.documentElement.setAttribute('data-theme', savedTheme);
|
||||
})();
|
||||
Reference in New Issue
Block a user