mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-01 13:13:36 +01:00
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)
|
.on('error', reject)
|
||||||
.pipe(filter(['**'].concat(filters.fonts)))
|
.pipe(filter(['**'].concat(filters.fonts)))
|
||||||
.pipe(gulpif('popup/index.html', replace('__BROWSER__', 'browser_safari')))
|
.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))
|
.pipe(gulp.dest(dest))
|
||||||
.on('end', resolve);
|
.on('end', resolve);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user