diff --git a/dist/ratchet.js b/dist/ratchet.js index 515392d..e1d52f9 100644 --- a/dist/ratchet.js +++ b/dist/ratchet.js @@ -47,7 +47,12 @@ if (!anchor || !anchor.hash) return; - popover = document.querySelector(anchor.hash); + try{ + popover = document.querySelector(anchor.hash); + } + catch { + popover = {} + } if (!popover || !popover.classList.contains('popover')) return;