Merge pull request #29 from 002Hub/deepsource-fix-74783334
Replace `==`/`!=` with `===`/`!==`
This commit is contained in:
commit
85b549458d
@ -379,7 +379,7 @@ function switchChannel(channelname) {
|
|||||||
sessionStorage.setItem("lastdm", channelname);
|
sessionStorage.setItem("lastdm", channelname);
|
||||||
currentChannel = channelname
|
currentChannel = channelname
|
||||||
|
|
||||||
if(localStorage.getItem(currentChannel+"enc_key")!=null) {
|
if(localStorage.getItem(currentChannel+"enc_key")!==null) {
|
||||||
encryption_keys = localStorage.getItem(currentChannel+"enc_key")
|
encryption_keys = localStorage.getItem(currentChannel+"enc_key")
|
||||||
} else {
|
} else {
|
||||||
encryption_keys = ""
|
encryption_keys = ""
|
||||||
|
@ -41,7 +41,7 @@ export const setup = function (router, con, server) {
|
|||||||
res.locals.settings = JSON.parse(result[0].User_Settings);
|
res.locals.settings = JSON.parse(result[0].User_Settings);
|
||||||
if (res.locals.settings == "null")
|
if (res.locals.settings == "null")
|
||||||
res.locals.settings = {};
|
res.locals.settings = {};
|
||||||
if (res.locals.settings == null)
|
if (res.locals.settings === null)
|
||||||
res.locals.settings = {};
|
res.locals.settings = {};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user