1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-25 12:15:18 +01:00

Fix nativeMessaging not being enabled in safari (#1599)

This commit is contained in:
Oscar Hinton 2021-02-05 10:00:00 +01:00 committed by GitHub
parent e5764ee16e
commit 5d51fd3fbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
});