mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-21 22:42:19 +00:00
fix search (variable conflict with recentfm)
This commit is contained in:
parent
57d73646b8
commit
87ae6f0631
2 changed files with 3 additions and 3 deletions
|
@ -16,8 +16,8 @@ function displayResults (results, store) {
|
||||||
searchResults.innerHTML = 'No results found.';
|
searchResults.innerHTML = 'No results found.';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const params = new URLSearchParams(window.location.search);
|
const searchParams = new URLSearchParams(window.location.search);
|
||||||
const query = params.get('query');
|
const query = searchParams.get('query');
|
||||||
if (query) {
|
if (query) {
|
||||||
document.getElementById('search-query').setAttribute('value', query);
|
document.getElementById('search-query').setAttribute('value', query);
|
||||||
const idx = lunr(function () {
|
const idx = lunr(function () {
|
||||||
|
|
|
@ -55,6 +55,6 @@
|
||||||
<h3>status.lol</h3>
|
<h3>status.lol</h3>
|
||||||
<script src="https://status.lol/jbowdre.js?time&link&fluent&pretty"></script>
|
<script src="https://status.lol/jbowdre.js?time&link&fluent&pretty"></script>
|
||||||
<hr>
|
<hr>
|
||||||
<h3>recent track</h3>
|
<h3>latest track</h3>
|
||||||
<script src="https://recentfm.rknight.me/now.js?u=pushpianotire&e=🎶"></script>
|
<script src="https://recentfm.rknight.me/now.js?u=pushpianotire&e=🎶"></script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue