init modal stuff.

This commit is contained in:
deepjyoti30
2020-05-14 11:58:14 +05:30
parent 993704e011
commit 4f028a77c6
5 changed files with 80 additions and 1 deletions

View File

@@ -68,7 +68,14 @@ function initSearchBar(jsonData) {
if (event.key != 'Enter') return
// Open google with the search results.
query = document.getElementById(searchBarId).value.replace(/\ /g, "+")
query = document.getElementById(searchBarId).value
if (query == "--setting") {
showSettings()
document.getElementById(searchBarId).value = ""
return
}
query = query.replace(/\ /g, "+")
document.location = searchUrl + query
})
}