mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-28 08:10:45 +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