diff --git a/app/client.imba b/app/client.imba index 1000855..96b8ee2 100644 --- a/app/client.imba +++ b/app/client.imba @@ -264,11 +264,11 @@ tag app let input = window.prompt "Please enter the URL of your search engine." return if input === null try - var { href:url, host } = parse_url input + var { href, host } = parse_url input catch e return err "changing search engine", e - let icon = await fetch_image_as_base_64 host - config.search_engine = { url, icon } + config.search_engine.url = href + config.search_engine.icon = await fetch_image_as_base_64 host save_config! await set_search_engine! settings_active = no diff --git a/package.json b/package.json index dd0e521..a4abb00 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fuzzyhome", - "version": "0.1.35", + "version": "0.1.36", "scripts": { "start": "imba run -SMH --baseurl . -w server.imba", "build-app": "rm -rf dist && imba build -SMH --baseurl . server.imba",