aboutsummaryrefslogtreecommitdiffhomepage
path: root/addon
diff options
context:
space:
mode:
Diffstat (limited to 'addon')
-rw-r--r--addon/background.js4
-rw-r--r--addon/manifest.json7
2 files changed, 9 insertions, 2 deletions
diff --git a/addon/background.js b/addon/background.js
index 6c007e5..058f875 100644
--- a/addon/background.js
+++ b/addon/background.js
@@ -21,3 +21,7 @@ browser.contextMenus.onClicked.addListener((info, tab) => {
21 21
22 browser.tabs.sendMessage(tab.id, id) 22 browser.tabs.sendMessage(tab.id, id)
23}) 23})
24
25browser.browserAction.onClicked.addListener((info) => {
26 browser.tabs.sendMessage(info.id, 'map-inline-add')
27})
diff --git a/addon/manifest.json b/addon/manifest.json
index c354f65..e7bcbcf 100644
--- a/addon/manifest.json
+++ b/addon/manifest.json
@@ -9,6 +9,10 @@
9 "48": "icons/default.ico" 9 "48": "icons/default.ico"
10 }, 10 },
11 11
12 "browser_action": {
13 "default_title": "Map-Inline"
14 },
15
12 "content_scripts": [ 16 "content_scripts": [
13 { 17 {
14 "matches": [ 18 "matches": [
@@ -39,7 +43,6 @@
39 "tabs", 43 "tabs",
40 "scripting", 44 "scripting",
41 "contextMenus", 45 "contextMenus",
42 "https://epsg.io/*", 46 "<all_urls>"
43 "https://cdn.jsdelivr.net/*"
44 ] 47 ]
45} 48}