From 92d1003136e3cf16235b3309aba7f225168a1c1f Mon Sep 17 00:00:00 2001 From: familyfriendlymikey Date: Tue, 16 Aug 2022 19:42:39 -0400 Subject: [PATCH] dont overwrite search engine config --- app/client.imba | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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",