diff --git a/js/dms.js b/js/dms.js index 20e7197..9904ae2 100644 --- a/js/dms.js +++ b/js/dms.js @@ -379,7 +379,7 @@ function switchChannel(channelname) { sessionStorage.setItem("lastdm", channelname); currentChannel = channelname - if(localStorage.getItem(currentChannel+"enc_key")!=null) { + if(localStorage.getItem(currentChannel+"enc_key")!==null) { encryption_keys = localStorage.getItem(currentChannel+"enc_key") } else { encryption_keys = "" diff --git a/routes/api/all.js b/routes/api/all.js index 459380d..43bfa94 100644 --- a/routes/api/all.js +++ b/routes/api/all.js @@ -41,7 +41,7 @@ export const setup = function (router, con, server) { res.locals.settings = JSON.parse(result[0].User_Settings); if (res.locals.settings == "null") res.locals.settings = {}; - if (res.locals.settings == null) + if (res.locals.settings === null) res.locals.settings = {}; }