1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-28 04:08:47 +02:00

make sure new edge doesnt open chrome rating

This commit is contained in:
Kyle Spearrin 2020-03-03 08:48:11 -05:00
parent a06ef80dc6
commit 8dea9daeea
2 changed files with 7 additions and 3 deletions

2
jslib

@ -1 +1 @@
Subproject commit e93c534ec4f724eaa8b494f516b187bea67b132c
Subproject commit da9b9b438c4028b16f0d02d9e83477dce9378a16

View File

@ -32,7 +32,7 @@ const RateUrls = {
[DeviceType.OperaExtension]:
'https://addons.opera.com/en/extensions/details/bitwarden-free-password-manager/#feedback-container',
[DeviceType.EdgeExtension]:
'https://www.microsoft.com/store/p/bitwarden-free-password-manager/9p6kxl0svnnl',
'https://microsoftedge.microsoft.com/addons/detail/jbkfoedolllekgbhcbcoahefnbanhhlh',
[DeviceType.VivaldiExtension]:
'https://chrome.google.com/webstore/detail/bitwarden-free-password-m/nngceckbapebfimnlniiiahkandclblb/reviews',
[DeviceType.SafariExtension]:
@ -278,6 +278,10 @@ export class SettingsComponent implements OnInit {
rate() {
this.analytics.eventTrack.next({ action: 'Rate Extension' });
BrowserApi.createNewTab((RateUrls as any)[this.platformUtilsService.getDevice()]);
let deviceType = this.platformUtilsService.getDevice();
if (window.navigator.userAgent.indexOf('Edg/') > -1) {
deviceType = DeviceType.EdgeExtension;
}
BrowserApi.createNewTab((RateUrls as any)[deviceType]);
}
}