diff --git a/resources/js/ext.uls.preferences.js b/resources/js/ext.uls.preferences.js index 0229e012..36f96d2c 100644 --- a/resources/js/ext.uls.preferences.js +++ b/resources/js/ext.uls.preferences.js @@ -101,7 +101,9 @@ this.preferences = preferenceStore().get( this.preferenceName ); } else { var options = mw.user.options.get( this.preferenceName ); - + if ( !options ) { + options = '{}'; + } // Try to parse JSON try { this.preferences = JSON.parse( options );