Browse Source

Open modal on load if neutralinputs get param provided

main
Holly McFarland 6 months ago
parent
commit
4482deaa03
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      script.js

+ 6
- 0
script.js View File

@ -813,5 +813,11 @@ document.addEventListener("DOMContentLoaded", function () {
new bootstrap.Collapse(hintElement);
});
// Open modal if "neutralinputs" in GET parameters
const urlParams = new URLSearchParams(window.location.search);
if (urlParams.get("neutralinputs") !== null) {
new bootstrap.Modal(document.getElementById("neutral-dirs-modal")).toggle();
}
requestAnimationFrame(handleFrame);
});

Loading…
Cancel
Save