| 766 | } | 766 | } |
| 767 | }); | 767 | }); |
| 768 | | 768 | |
| 769 | // read the state of right Nav Lock and apply to rightnav classlist | | |
| 770 | $(RPanelPin).prop('checked', accountStorage.getItem('NavLockOn') == 'true'); | | |
| 771 | if (!isMobile()) { //only read/set pin states on non-mobile devices | 769 | if (!isMobile()) { //only read/set pin states on non-mobile devices |
| | 770 | // read the state of right Nav Lock and apply to rightnav classlist |
| | 771 | $(RPanelPin).prop('checked', accountStorage.getItem('NavLockOn') == 'true'); |
| 772 | if (accountStorage.getItem('NavLockOn') == 'true') { | 772 | if (accountStorage.getItem('NavLockOn') == 'true') { |
| 773 | //console.log('setting pin class via local var'); | 773 | //console.log('setting pin class via local var'); |
| 774 | $(RightNavPanel).addClass('pinnedOpen'); | 774 | $(RightNavPanel).addClass('pinnedOpen'); |