From 5d51fd3fbd2da79801c67be3d57855d8cf72cabb Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Fri, 5 Feb 2021 10:00:00 +0100 Subject: [PATCH] Fix nativeMessaging not being enabled in safari (#1599) --- gulpfile.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 98422896d8..81f158f3d9 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -192,6 +192,11 @@ function safariCopyBuild(source, dest) { .on('error', reject) .pipe(filter(['**'].concat(filters.fonts))) .pipe(gulpif('popup/index.html', replace('__BROWSER__', 'browser_safari'))) + .pipe(gulpif('manifest.json', jeditor((manifest) => { + delete manifest.optional_permissions; + manifest.permissions.push("nativeMessaging"); + return manifest; + }))) .pipe(gulp.dest(dest)) .on('end', resolve); });