1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

converting chrome refs to BrowserApi

This commit is contained in:
Kyle Spearrin
2018-01-12 11:09:30 -05:00
parent 1e11a89fc2
commit 8f438d818b
24 changed files with 91 additions and 48 deletions

View File

@@ -91,7 +91,7 @@ angular
$scope.launchWebsite = function (cipher) {
if (cipher.showLaunch) {
$analytics.eventTrack('Launched Website');
chrome.tabs.create({ url: cipher.login.uri });
BrowserApi.createNewTab(cipher.login.uri);
}
};
@@ -133,7 +133,7 @@ angular
cancelButtonText: i18nService.cancel
}, function (confirmed) {
if (confirmed) {
chrome.tabs.create({ url: 'https://bitwarden.com' });
BrowserApi.createNewTab('https://bitwarden.com');
}
});
return;