Skip to content

Commit

Permalink
firefox debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
mirrorcult committed Sep 12, 2023
1 parent 08e0239 commit 9d6a398
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch localhost",
"type": "firefox",
"request": "launch",
"reAttach": true,
"url": "http://localhost:3000/index.html",
"webRoot": "${workspaceFolder}/book"
},
]
}
3 changes: 3 additions & 0 deletions scripts/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ var updateFunction = function() {
el.classList.remove("active");
});

if (id == undefined)
return;

Array.prototype.forEach.call(document.getElementsByClassName("pagetoc")[0].children, function(el) {
if (id.href.localeCompare(el.href) == 0) {
el.classList.add("active");
Expand Down

0 comments on commit 9d6a398

Please sign in to comment.