mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Remove browser action.
This commit is contained in:
parent
584d94c702
commit
0165add373
2 changed files with 0 additions and 18 deletions
|
@ -8,11 +8,6 @@
|
|||
"scripts": ["main.js"]
|
||||
},
|
||||
|
||||
"browser_action": {
|
||||
"default_title": "Tridactyl",
|
||||
"browser_style": true
|
||||
},
|
||||
|
||||
"content_scripts": [
|
||||
{
|
||||
"matches":["<all_urls>"],
|
||||
|
|
|
@ -63,19 +63,6 @@ The following functions all talk to the content.js script to perform functions t
|
|||
sendMessageToActiveTab({command:"arbitrary",object,args})
|
||||
# example: doArbitraryCodeInWindow("scrollBy",[0,100])
|
||||
|
||||
## Listener test
|
||||
|
||||
tridactyl.func.handleBrowserAction = handleBrowserAction = () ->
|
||||
# .then takes a function that consumes at least one argument. this is an
|
||||
# example of a named function, but anonymous functions are fine, too.
|
||||
x = await browser.tabs.query({active: true}).then(console.log)
|
||||
|
||||
|
||||
# Example of a listener. Presumably we wouldn't use the browserAction button in
|
||||
# the real thing.
|
||||
|
||||
browser.browserAction.onClicked.addListener(handleBrowserAction)
|
||||
|
||||
## Regex test
|
||||
|
||||
Adapted from http://www.dustindiaz.com/autocomplete-fuzzy-matching
|
||||
|
|
Loading…
Add table
Reference in a new issue