1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 11:13:46 +00:00

expand vault uses a popup instead of a new tab

This commit is contained in:
Kyle Spearrin
2017-10-10 12:42:24 -04:00
parent 22e1c7d58d
commit 41c3007821
3 changed files with 28 additions and 5 deletions

View File

@@ -236,6 +236,10 @@ function initUtilsService() {
return theWindow.location.search && theWindow.location.search.indexOf('uilocation=tab') > -1;
};
UtilsService.prototype.inPopout = function (theWindow) {
return theWindow.location.search && theWindow.location.search.indexOf('uilocation=popout') > -1;
};
UtilsService.prototype.inPopup = function (theWindow) {
return theWindow.location.search && theWindow.location.search.indexOf('uilocation=popup') > -1;
};