diff --git a/public/error.js b/public/error.js index 3f9e19e..f6c38b9 100644 --- a/public/error.js +++ b/public/error.js @@ -1,6 +1,6 @@ -const error = document.querySelector("#error"); -const errorCode = document.querySelector("#error-code"); -const registerButton = document.querySelector("#register-sw"); +const error = document.getElementById("error"); +const errorCode = document.getElementById("error-code"); +const registerButton = document.getElementById("register-sw"); if (location.pathname.startsWith(__uv$config.prefix)) { error.textContent = "Error: The service worker is not registered."; diff --git a/public/index.js b/public/index.js index 1f1dbf3..7b6db8f 100644 --- a/public/index.js +++ b/public/index.js @@ -1,7 +1,7 @@ -const form = document.querySelector("#uv-form"); -const input = document.querySelector("#uv-address"); -const error = document.querySelector("#error"); -const errorCode = document.querySelector("#error-code"); +const form = document.getElementById("uv-form"); +const input = document.getElementById("uv-address"); +const error = document.getElementById("error"); +const errorCode = document.getElementById("error-code"); function isUrl(val = "") { if (