mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-24 12:06:15 +01:00
make sure new edge doesnt open chrome rating
This commit is contained in:
parent
a06ef80dc6
commit
8dea9daeea
2
jslib
2
jslib
@ -1 +1 @@
|
|||||||
Subproject commit e93c534ec4f724eaa8b494f516b187bea67b132c
|
Subproject commit da9b9b438c4028b16f0d02d9e83477dce9378a16
|
@ -32,7 +32,7 @@ const RateUrls = {
|
|||||||
[DeviceType.OperaExtension]:
|
[DeviceType.OperaExtension]:
|
||||||
'https://addons.opera.com/en/extensions/details/bitwarden-free-password-manager/#feedback-container',
|
'https://addons.opera.com/en/extensions/details/bitwarden-free-password-manager/#feedback-container',
|
||||||
[DeviceType.EdgeExtension]:
|
[DeviceType.EdgeExtension]:
|
||||||
'https://www.microsoft.com/store/p/bitwarden-free-password-manager/9p6kxl0svnnl',
|
'https://microsoftedge.microsoft.com/addons/detail/jbkfoedolllekgbhcbcoahefnbanhhlh',
|
||||||
[DeviceType.VivaldiExtension]:
|
[DeviceType.VivaldiExtension]:
|
||||||
'https://chrome.google.com/webstore/detail/bitwarden-free-password-m/nngceckbapebfimnlniiiahkandclblb/reviews',
|
'https://chrome.google.com/webstore/detail/bitwarden-free-password-m/nngceckbapebfimnlniiiahkandclblb/reviews',
|
||||||
[DeviceType.SafariExtension]:
|
[DeviceType.SafariExtension]:
|
||||||
@ -278,6 +278,10 @@ export class SettingsComponent implements OnInit {
|
|||||||
|
|
||||||
rate() {
|
rate() {
|
||||||
this.analytics.eventTrack.next({ action: 'Rate Extension' });
|
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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user