mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 15:23:33 +00:00
make sure new edge doesnt open chrome rating
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: e93c534ec4...da9b9b438c
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user