Browse Source

encode uri for search queries

main
familyfriendlymikey 2 years ago
parent
commit
00afea8047
  1. 3
      app/client.imba
  2. 2
      package.json
  3. 2
      sw.imba

3
app/client.imba

@ -70,7 +70,8 @@ tag app
def use_search_engine
state.config.search_engine_frequency += 1
save_config!
window.location.href = "//{state.config.search_engine_url}{state.query}"
let encoded_query = window.encodeURIComponent(state.query)
window.location.href = "//{state.config.search_engine_url}{encoded_query}"
def handle_return
if state.scored_links.length < 1

2
package.json

@ -1,6 +1,6 @@
{
"name": "fuzzyhome",
"version": "0.0.25",
"version": "0.0.26",
"scripts": {
"start": "imba run -SMH --baseurl . -w server.imba",
"build-app": "imba build -SMH --baseurl . server.imba",

2
sw.imba

@ -1,7 +1,7 @@
let p = console.log
const app_prefix = "fuzzyhome_cache"
const version = "0.0.25"
const version = "0.0.26"
const cache_name = "{app_prefix}-{version}"

Loading…
Cancel
Save