From 614961b220b730b957b037e782d287fb0d09819a Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Thu, 20 Aug 2026 15:01:36 -0600 Subject: [PATCH] Open dialog when receiving an appropriate URI query string. --- src/utils/modal.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/utils/modal.js b/src/utils/modal.js index 5c0fafd..b0d5f77 100644 --- a/src/utils/modal.js +++ b/src/utils/modal.js @@ -79,8 +79,6 @@ class RenderScripture { constructor(dialog) { this.dialog = dialog; - const url = new URL(document.URL); - console.log(parseRef(url.searchParams.get('cite'))); //history.replaceState({dialog: false}, ''); window.addEventListener('popstate', (evt) => { @@ -128,6 +126,11 @@ class RenderScripture { } }); + const url = new URL(document.URL); + if (url.searchParams.get("cite") !== null) { + history.replaceState({dialog: false}, '', ''); + this.openDialog(url.searchParams.get("cite"), url.hash.substring(1)); + } } anchorClick(evt) {