1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

edge fixes

This commit is contained in:
Kyle Spearrin
2017-10-05 17:18:54 -04:00
parent 4d3033f17c
commit 2a929c8de8
2 changed files with 31 additions and 14 deletions

View File

@@ -24,7 +24,16 @@ angular
self.expandVault = function (e) {
$analytics.eventTrack('Expand Vault');
chrome.tabs.create({ url: $window.location.href });
var href = $window.location.href;
if (utilsService.isEdge()) {
var popupIndex = href.indexOf('/popup/');
if (popupIndex > -1) {
href = href.substring(popupIndex);
}
}
chrome.tabs.create({ url: href });
};
chrome.runtime.onMessage.addListener(function (msg, sender, sendResponse) {