|
@ -102,7 +102,7 @@ export default new class api |
|
|
def navigate link |
|
|
def navigate link |
|
|
await increment_link_frequency link |
|
|
await increment_link_frequency link |
|
|
#home_input.value = "" |
|
|
#home_input.value = "" |
|
|
window.open link.url,'_blank' |
|
|
new_tab link.url |
|
|
|
|
|
|
|
|
get math_result |
|
|
get math_result |
|
|
try |
|
|
try |
|
@ -138,7 +138,7 @@ export default new class api |
|
|
def handle_bang |
|
|
def handle_bang |
|
|
return if state.loading |
|
|
return if state.loading |
|
|
await increment_link_frequency bang |
|
|
await increment_link_frequency bang |
|
|
window.location.href = encoded_bang_query |
|
|
new_tab encoded_bang_query |
|
|
|
|
|
|
|
|
def unset_active_bang |
|
|
def unset_active_bang |
|
|
state.active_bang = no |
|
|
state.active_bang = no |
|
@ -149,4 +149,7 @@ export default new class api |
|
|
"https://icon.horse/icon/{host}" |
|
|
"https://icon.horse/icon/{host}" |
|
|
|
|
|
|
|
|
def help |
|
|
def help |
|
|
window.open "https://github.com/familyfriendlymikey/fuzzyhome",'_blank' |
|
|
new_tab "https://github.com/familyfriendlymikey/fuzzyhome" |
|
|
|
|
|
|
|
|
|
|
|
def new_tab(url) |
|
|
|
|
|
window.open url,'_blank' |
|
|