diff options
author | Ajay <[email protected]> | 2022-01-14 21:51:42 -0500 |
---|---|---|
committer | Ajay <[email protected]> | 2022-01-14 21:51:42 -0500 |
commit | bb47863080eec6f86483ea2438eb3daed9eff936 (patch) | |
tree | 56409d8e2499e4d80764e74c1f6fdf2f543662c0 /webpack/webpack.manifest.js | |
parent | d50a69f1fd99f20a686e35b0cadcec02a62eec61 (diff) | |
download | SponsorBlock-bb47863080eec6f86483ea2438eb3daed9eff936.tar.gz SponsorBlock-bb47863080eec6f86483ea2438eb3daed9eff936.zip |
Add safari extra manifest and use chrome's manifest for edge
Diffstat (limited to 'webpack/webpack.manifest.js')
-rw-r--r-- | webpack/webpack.manifest.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/webpack/webpack.manifest.js b/webpack/webpack.manifest.js index 63c82cdf..a4aaea9e 100644 --- a/webpack/webpack.manifest.js +++ b/webpack/webpack.manifest.js @@ -8,6 +8,7 @@ const fs = require('fs'); const manifest = require("../manifest/manifest.json"); const firefoxManifestExtra = require("../manifest/firefox-manifest-extra.json"); const chromeManifestExtra = require("../manifest/chrome-manifest-extra.json"); +const safariManifestExtra = require("../manifest/safari-manifest-extra.json"); const betaManifestExtra = require("../manifest/beta-manifest-extra.json"); const firefoxBetaManifestExtra = require("../manifest/firefox-beta-manifest-extra.json"); @@ -41,8 +42,12 @@ class BuildManifest { // Add missing manifest elements if (this.options.browser.toLowerCase() === "firefox") { mergeObjects(manifest, firefoxManifestExtra); - } else if (this.options.browser.toLowerCase() === "chrome" || this.options.browser.toLowerCase() === "chromium") { + } else if (this.options.browser.toLowerCase() === "chrome" + || this.options.browser.toLowerCase() === "chromium" + || this.options.browser.toLowerCase() === "edge") { mergeObjects(manifest, chromeManifestExtra); + } else if (this.options.browser.toLowerCase() === "safari") { + mergeObjects(manifest, safariManifestExtra); } if (this.options.stream === "beta") { |