From 1cab054da7950127bcb1fe1e3f2bc219a89ccb5b Mon Sep 17 00:00:00 2001 From: wearrrrr Date: Tue, 20 Feb 2024 13:23:32 -0600 Subject: [PATCH] rename window.loadContent to window.loadFormContent --- src/components/ProxyRegistrar.astro | 2 +- src/layouts/Layout.astro | 4 ++-- src/pages/[lang]/index.astro | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/ProxyRegistrar.astro b/src/components/ProxyRegistrar.astro index a9cd044..b25ea89 100644 --- a/src/components/ProxyRegistrar.astro +++ b/src/components/ProxyRegistrar.astro @@ -91,7 +91,7 @@ event.preventDefault(); loadContent(); } - window.loadContent = loadContent; + window.loadFormContent = loadContent; function isUrl(val = "") { if (/^http(s?):\/\//.test(val) || (val.includes(".") && val.substr(0, 1) !== " ")) return true; diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 02bd8bb..6efeb8a 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -54,8 +54,8 @@ const { title, optionalPreloads } = Astro.props; :root { --background-color: #080808; --background-highlight: #252525; - --accent-color: #6b00c9; - --accent-color-brighter: #7e00e0; + --accent-color: #4a008a; + --accent-color-brighter: #5f03a5; --text-color: #fff; --text-color-accent: #c7c7c7; --dropdown-background-color: #1e1e1e; diff --git a/src/pages/[lang]/index.astro b/src/pages/[lang]/index.astro index d2c71bc..e297ea1 100644 --- a/src/pages/[lang]/index.astro +++ b/src/pages/[lang]/index.astro @@ -81,7 +81,7 @@ export function getStaticPaths() { console.log("here") urlInput.value = suggestion.phrase; // I can't be bothered to extend the window object, so I'm just going to use any - (window as any).loadContent(); + (window as any).loadFormContent(); }); searchSuggestions.appendChild(suggestionElement); });