fix: fix eslint no-shadow error

This commit is contained in:
alistair3149 2021-12-15 22:19:39 -05:00
parent 4b671569d2
commit f5c5c996fa
No known key found for this signature in database
GPG key ID: 94D081060FD3DD9C

View file

@ -4,9 +4,9 @@
*/
function initThemeSettings( window ) {
const userTheme = window.mw.user.options.get( 'CitizenThemeUser' ),
setLocalStorage = ( theme ) => {
setLocalStorage = ( themeName ) => {
try {
localStorage.setItem( 'skin-citizen-theme', theme );
localStorage.setItem( 'skin-citizen-theme', themeName );
} catch ( e ) {}
};