-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix JavaScript error on pages with a TOC
When loading a documentation page with a table of contents (e.g. https://www.raspberrypi.com/documentation/computers/getting-started.html), the following JavaScript error is thrown in the console: TypeError: e.indexOf is not a function. (In 'e.indexOf(" ")', 'e.indexOf' is undefined) This is caused by a unsupported mix of dependencies for Tocify: specifically, we're attempting to load jQuery 3.6.0 which removed an API used by Tocify (see gfranko/jquery.tocify.js#103). Fix this by loading versions of jQuery and jQuery UI that are supported by Tocify.
- Loading branch information
Showing
5 changed files
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.