Use strict equality checking
This commit is contained in:
parent
fe6e592c20
commit
4a3bea1928
@ -330,7 +330,7 @@ $(function() {
|
|||||||
.data("count", "")
|
.data("count", "")
|
||||||
.empty();
|
.empty();
|
||||||
|
|
||||||
if (sidebar.find(".highlight").length == 0) {
|
if (sidebar.find(".highlight").length === 0) {
|
||||||
favico.badge("");
|
favico.badge("");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -542,7 +542,7 @@ $(function() {
|
|||||||
document.addEventListener(
|
document.addEventListener(
|
||||||
"visibilitychange",
|
"visibilitychange",
|
||||||
function() {
|
function() {
|
||||||
if (sidebar.find(".highlight").length == 0) {
|
if (sidebar.find(".highlight").length === 0) {
|
||||||
favico.badge("");
|
favico.badge("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user