Fix nativeMessaging not being enabled in safari (#1599)
This commit is contained in:
parent
e5764ee16e
commit
5d51fd3fbd
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue