From 6e6f85af9a5b676707640ba200b2139607ac3604 Mon Sep 17 00:00:00 2001 From: Neil Mayhew Date: Wed, 15 Jan 2020 09:53:30 -0700 Subject: [PATCH] Apply patch from https://github.com/Martii https://github.com/adam-p/markdown-here/issues/577#issuecomment-533853716 --- src/manifest.json | 12 ++++++++++-- utils/build.js | 4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/manifest.json b/src/manifest.json index f3c5af49..4d1fae56 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -12,7 +12,7 @@ "128": "common/images/icon128.png", "512": "common/images/icon512.png" }, - "permissions": ["contextMenus", "storage"], + "permissions": ["menus", "storage"], "background": {"page": "chrome/background.html"}, "content_scripts": [ { @@ -46,7 +46,15 @@ ,"applications": { "gecko": { - "id": "markdown-here-webext@adam.pritchard" + "id": "markdown-here-webext@adam.pritchard", + "strict_min_version": "68.0" + } + } + ,"legacy": { + "type": "xul", + "options": { + "page": "common/options.html", + "open_in_tab": true } } } diff --git a/utils/build.js b/utils/build.js index 9274aab3..7a32bf14 100644 --- a/utils/build.js +++ b/utils/build.js @@ -9,7 +9,7 @@ var fs = require('fs'); var file = require('file'); var archiver = require('archiver'); -var MetaScript = require('MetaScript'); +var MetaScript = require('metascript'); var BASE_DIR = '..'; @@ -22,7 +22,7 @@ var THUNDERBIRD_EXTENSION = file.path.join(DIST_DIR, 'thunderbird.xpi'); var CHROME_INPUT = [/^manifest\.json$/, /^common(\\|\/)/, /^chrome(\\|\/)/, /^_locales(\\|\/)/]; var FIREFOX_INPUT = CHROME_INPUT; -var THUNDERBIRD_INPUT = [/^chrome.manifest$/, /^install.rdf$/, /^common(\\|\/)/, /^firefox(\\|\/)/]; +var THUNDERBIRD_INPUT = [/^manifest\.json$/, /^chrome.manifest$/, /^install.rdf$/, /^common(\\|\/)/, /^firefox(\\|\/)/, /^_locales(\\|\/)/]; var CHROME_PLATFORM = 'chrome'; var FIREFOX_PLATFORM = 'firefox';