fix for syntax error (extension) function statement inside 'if'

This commit is contained in:
Jesse D. McDonald 2020-04-03 13:37:58 -05:00
parent fe711991f5
commit 5f9ce09181
1 changed files with 1 additions and 1 deletions

View File

@ -632,7 +632,7 @@ $(function (){
const LS_KEY_THEME = 'pacosako/theme';
if ('localStorage' in window) {
function fromStorage(key, value) {
const fromStorage = function fromStorage(key, value) {
debug('from localStorage', { key: key, value: value });
if (key === LS_KEY_NOTIFY) {
const doNotify = value === 'on';