Skip to content

Commit

Permalink
Fix mode numbers checked in layout switcher.
Browse files Browse the repository at this point in the history
  • Loading branch information
davmillar committed Aug 20, 2022
1 parent 40630a6 commit 35cd355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const UserSettings = {
const modeInt = newMode ? parseInt(newMode, 10) : 1;
this._responsive_mode = modeInt;

let verb = (modeInt === 1 || modeInt === 2) ? 'add' : 'remove';
let flipVerb = (modeInt === 2) ? 'add' : 'remove';
let verb = (modeInt === 2 || modeInt === 3) ? 'add' : 'remove';
let flipVerb = (modeInt === 3) ? 'add' : 'remove';
let streamVerb = (modeInt === 4) ? 'add' : 'remove';
document.getElementById("app-container").classList[verb]("responsive");
document.getElementById("app-container").classList[flipVerb]("responsive-flip");
Expand Down

0 comments on commit 35cd355

Please sign in to comment.