commit 762a52aee6d56834fda233dd5cf1d2098058a960 Author: Arlo Breault arlolra@gmail.com Date: Wed May 8 17:48:50 2019 -0400
Prefer a background script to a page in the webext
Now that the page is no longer necessary. --- proxy/webext/manifest.json | 2 +- proxy/webext/snowflake.html | 13 ------------- proxy/webext/tmp.js | 2 -- 3 files changed, 1 insertion(+), 16 deletions(-)
diff --git a/proxy/webext/manifest.json b/proxy/webext/manifest.json index f0f671d..a86d4af 100644 --- a/proxy/webext/manifest.json +++ b/proxy/webext/manifest.json @@ -4,7 +4,7 @@ "version": "0.0.0", "description": "Snowflake ...", "background": { - "page": "snowflake.html", + "scripts": ["snowflake.js"], "persistent": true }, "browser_action": { diff --git a/proxy/webext/snowflake.html b/proxy/webext/snowflake.html deleted file mode 100644 index 6d28fe6..0000000 --- a/proxy/webext/snowflake.html +++ /dev/null @@ -1,13 +0,0 @@ -<!doctype html> -<html> - <head> - <meta charset="utf-8"> - <!-- FIXME: Use a "script" instead of a "page" in the manifest.json --> - <script src="tmp.js"></script> - <script src="snowflake.js"></script> - </head> - <body> - <!-- FIXME: Refactor snowflake.js to eliminate the need for this --> - <div id="webext" /> - </body> -</html> diff --git a/proxy/webext/tmp.js b/proxy/webext/tmp.js deleted file mode 100644 index 4bd0a10..0000000 --- a/proxy/webext/tmp.js +++ /dev/null @@ -1,2 +0,0 @@ -// FIXME: Refactor snowflake.js to eliminate the need for this -document.cookie = "snowflake-allow=1";