rename window.loadContent to window.loadFormContent
This commit is contained in:
parent
e2b3d7cdc6
commit
1cab054da7
3 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue