Browse Source

focus at bottom of render because autofocus=yes doesnt work

main
Mikey Oz 3 years ago
parent
commit
72f540f588
  1. 2
      app/client.imba
  2. 2
      package.json
  3. 2
      sw.imba

2
app/client.imba

@ -23,7 +23,6 @@ tag app
get render? do mounted? get render? do mounted?
def mount def mount
$input.focus!
unless global.localStorage.fuzzyhome_visited unless global.localStorage.fuzzyhome_visited
await put_link { name: "fuzzy home help", link: "github.com/familyfriendlymikey/fuzzyhome" } await put_link { name: "fuzzy home help", link: "github.com/familyfriendlymikey/fuzzyhome" }
await put_link { name: "google", link: "google.com" } await put_link { name: "google", link: "google.com" }
@ -336,5 +335,6 @@ tag app
<a[tt:none]> "Search {state.config.search_engine_hostname}" <a[tt:none]> "Search {state.config.search_engine_hostname}"
<.link-right> <.link-right>
<.frequency> state.config.search_engine_frequency <.frequency> state.config.search_engine_frequency
$input.focus!
imba.mount <app> imba.mount <app>

2
package.json

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

2
sw.imba

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

Loading…
Cancel
Save