Skip to content

Commit

Permalink
fix: isEmpty dysfunctioning
Browse files Browse the repository at this point in the history
  • Loading branch information
hikerpig committed Jul 10, 2020
1 parent 676fab8 commit 8374ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toc-bar.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@

function isEmpty(input) {
if (input) {
return Object.keys(input).length > 0
return Object.keys(input).length === 0
}
return true
}
Expand Down

0 comments on commit 8374ceb

Please sign in to comment.