mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-24 06:24:22 +00:00
fix: fix eslint no-shadow error
This commit is contained in:
parent
4b671569d2
commit
f5c5c996fa
|
@ -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 ) {}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue