mirror of
https://github.com/maciejpedzich/spotifyplaylistarchive.com.git
synced 2024-09-20 02:26:20 +02:00
Ensure custom theme prefs are saved
This commit is contained in:
parent
a451756815
commit
96fef514a2
@ -60,6 +60,11 @@ const metaTagTitle = `${title} - Spotify Playlist Archive`;
|
||||
} else {
|
||||
document.documentElement.setAttribute('data-theme', 'dark');
|
||||
}
|
||||
|
||||
localStorage.setItem(
|
||||
'theme',
|
||||
document.documentElement.getAttribute('data-theme')
|
||||
);
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
|
Loading…
Reference in New Issue
Block a user