From 72f540f588d1f20404e8528bca48b0abaf99f1d8 Mon Sep 17 00:00:00 2001 From: Mikey Oz Date: Sat, 14 May 2022 19:00:01 -0700 Subject: [PATCH] focus at bottom of render because autofocus=yes doesnt work --- app/client.imba | 2 +- package.json | 2 +- sw.imba | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/client.imba b/app/client.imba index bc8681c..7245a71 100644 --- a/app/client.imba +++ b/app/client.imba @@ -23,7 +23,6 @@ tag app get render? do mounted? def mount - $input.focus! unless global.localStorage.fuzzyhome_visited await put_link { name: "fuzzy home help", link: "github.com/familyfriendlymikey/fuzzyhome" } await put_link { name: "google", link: "google.com" } @@ -336,5 +335,6 @@ tag app "Search {state.config.search_engine_hostname}" <.link-right> <.frequency> state.config.search_engine_frequency + $input.focus! imba.mount diff --git a/package.json b/package.json index d7c3b17..df9d0ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fuzzyhome", - "version": "0.0.23", + "version": "0.0.24", "scripts": { "start": "imba run -SMH --baseurl . -w server.imba", "build-app": "imba build -SMH --baseurl . server.imba", diff --git a/sw.imba b/sw.imba index c4d3dae..5e02e78 100644 --- a/sw.imba +++ b/sw.imba @@ -1,7 +1,7 @@ let p = console.log const app_prefix = "fuzzyhome_cache" -const version = "0.0.23" +const version = "0.0.24" const cache_name = "{app_prefix}-{version}"