Skip to content

Commit

Permalink
fixed conditional OR when finding tocContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
schmunk42 committed Jul 5, 2018
1 parent 0d283d4 commit 49f513b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -14,7 +14,7 @@ function init(el) {
}

const container = el.dataset.tocContainer ?
findOne(el.dataset.tocContainer) | document.body : document.body;
findOne(el.dataset.tocContainer) || document.body : document.body;
const selectors = el.dataset.toc.split(',').map(s => s.trim());
const tocItems = [];
const offset = el.dataset.tocOffset ? parseInt(el.dataset.tocOffset, 10) : 1;
Expand Down

0 comments on commit 49f513b

Please sign in to comment.