From db5befcf451b26e00b94aeff927099bc63c63e5d Mon Sep 17 00:00:00 2001 From: ispedals Date: Sat, 11 Jun 2016 18:45:30 -0400 Subject: Add Gecko as a supported application to manifest --- ext/manifest.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ext/manifest.json') diff --git a/ext/manifest.json b/ext/manifest.json index 3cb13480..29160d3b 100644 --- a/ext/manifest.json +++ b/ext/manifest.json @@ -26,5 +26,10 @@ "fg/js/frame.js", "fg/ttf/kanji-stroke-orders.ttf", "fg/ttf/vl-gothic-regular.ttf" - ] + ], + "applications": { + "gecko": { + "id": "yomichan-gecko@example.com" + } + } } -- cgit v1.2.3 From f12660af91726bebc39866f30a9c760733478fc8 Mon Sep 17 00:00:00 2001 From: ispedals Date: Sat, 18 Jun 2016 19:02:07 -0400 Subject: Use non-deprecated options_ui instead of options_page in manifest --- ext/manifest.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext/manifest.json') diff --git a/ext/manifest.json b/ext/manifest.json index 29160d3b..d9367946 100644 --- a/ext/manifest.json +++ b/ext/manifest.json @@ -15,7 +15,9 @@ "css": ["fg/css/client.css"] }], "minimum_chrome_version": "45.0.0.0", - "options_page": "bg/options.html", + "options_ui": { + "page": "bg/options.html" + }, "permissions": ["storage"], "web_accessible_resources": [ "fg/css/frame.css", -- cgit v1.2.3 From a9863de95e201c8e814ad7d6dacedae98b13748a Mon Sep 17 00:00:00 2001 From: ispedals Date: Sun, 19 Jun 2016 12:46:39 -0400 Subject: Request permission to access localhost Permission is required to do XHR request to the domain. Otherwise Gecko attempts to use CORS to negotiate the request, which AnkiConnect does not expect. --- ext/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/manifest.json') diff --git a/ext/manifest.json b/ext/manifest.json index d9367946..70ce4a9a 100644 --- a/ext/manifest.json +++ b/ext/manifest.json @@ -18,7 +18,7 @@ "options_ui": { "page": "bg/options.html" }, - "permissions": ["storage"], + "permissions": ["*://127.0.0.1/*", "storage"], "web_accessible_resources": [ "fg/css/frame.css", "fg/img/add_kanji.png", -- cgit v1.2.3