mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 22:33:35 +00:00
Fix nativeMessaging not being enabled in safari (#1599)
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user