Browse Source

dont overwrite search engine config

main
familyfriendlymikey 2 years ago
parent
commit
92d1003136
  1. 6
      app/client.imba
  2. 2
      package.json

6
app/client.imba

@ -264,11 +264,11 @@ tag app
let input = window.prompt "Please enter the URL of your search engine." let input = window.prompt "Please enter the URL of your search engine."
return if input === null return if input === null
try try
var { href:url, host } = parse_url input var { href, host } = parse_url input
catch e catch e
return err "changing search engine", e return err "changing search engine", e
let icon = await fetch_image_as_base_64 host config.search_engine.url = href
config.search_engine = { url, icon } config.search_engine.icon = await fetch_image_as_base_64 host
save_config! save_config!
await set_search_engine! await set_search_engine!
settings_active = no settings_active = no

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "fuzzyhome", "name": "fuzzyhome",
"version": "0.1.35", "version": "0.1.36",
"scripts": { "scripts": {
"start": "imba run -SMH --baseurl . -w server.imba", "start": "imba run -SMH --baseurl . -w server.imba",
"build-app": "rm -rf dist && imba build -SMH --baseurl . server.imba", "build-app": "rm -rf dist && imba build -SMH --baseurl . server.imba",

Loading…
Cancel
Save