Skip to content

Commit 18581af

Browse files
committed
Fix problem with sre.style being ignored.
1 parent da21770 commit 18581af

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ts/ui/menu/Menu.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,10 +1015,11 @@ export class Menu {
10151015
*/
10161016
protected mergeUserSettings() {
10171017
try {
1018-
const settings = localStorage.getItem(Menu.MENU_STORAGE);
1019-
if (!settings) return;
1020-
Object.assign(this.settings, JSON.parse(settings));
1021-
this.setA11y(this.settings);
1018+
const json = localStorage.getItem(Menu.MENU_STORAGE);
1019+
if (!json) return;
1020+
const settings = JSON.parse(json);
1021+
Object.assign(this.settings, settings);
1022+
this.setA11y(settings);
10221023
} catch (err) {
10231024
console.log('MathJax localStorage error: ' + err.message);
10241025
}

0 commit comments

Comments
 (0)