fix for syntax error (extension) function statement inside 'if'
This commit is contained in:
parent
fe711991f5
commit
5f9ce09181
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in New Issue