Skip to content

Commit 8374ceb

Browse files
committed
fix: isEmpty dysfunctioning
1 parent 676fab8 commit 8374ceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toc-bar.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181

182182
function isEmpty(input) {
183183
if (input) {
184-
return Object.keys(input).length > 0
184+
return Object.keys(input).length === 0
185185
}
186186
return true
187187
}

0 commit comments

Comments
 (0)