From 486ea412931e3ae88d5cd23237adb79c868a7c7b Mon Sep 17 00:00:00 2001 From: "stefan.r" Date: Tue, 16 May 2017 13:36:21 +0200 Subject: [PATCH] Change | into || --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d06b6bd..fa8c09b 100644 --- a/index.js +++ b/index.js @@ -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 = []; let i = 1;