OpenTabletDriver / opentabletdriver.github.io

The next version of OpenTabletDriver.Web
http://opentabletdriver.net/
GNU Affero General Public License v3.0
1 stars 5 forks source link

(minor) inject-anchors.js throws exception on non-Wiki pages #128

Closed gonX closed 9 months ago

gonX commented 9 months ago

on main (0f334c1) on any page that doesn't have a #toc:

Uncaught TypeError: toc is null
    injectAnchorLinks https://opentabletdriver.net/assets/js/inject-anchors.js?8f8d7eee3427e04a:69
    <anonymous> https://opentabletdriver.net/assets/js/inject-anchors.js?8f8d7eee3427e04a:2
    EventListener.handleEvent* https://opentabletdriver.net/assets/js/inject-anchors.js?8f8d7eee3427e04a:1