Browse Source

refactor(partials): more fetch-inject inside closure

Josh Habdas 1 year ago
parent
commit
5c7f85531e
Signed by: Josh Habdas <jhabdas@protonmail.com> GPG Key ID: B148B31154C75A74
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      layouts/partials/toc-maybe.html

+ 1
- 1
layouts/partials/toc-maybe.html View File

@@ -7,7 +7,7 @@
7 7
     (function (window, document, undefined) {
8 8
       const el = document.querySelector('details summary');
9 9
       el.onclick = () => {
10
-        fetchInject([{{ "/js/smoothscroll.js" | relURL }}]);
10
+        window.fetchInject([{{ "/js/smoothscroll.js" | relURL }}]);
11 11
         el.onclick = null;
12 12
         document.querySelectorAll('#TableOfContents a').forEach(link => {
13 13
           link.addEventListener('click', evt => {

Loading…
Cancel
Save