mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 14:53:33 +00:00
copy totp to clipboard before closing popup
This commit is contained in:
@@ -83,8 +83,7 @@ angular
|
||||
chrome.tabs.sendMessage(tabId, {
|
||||
command: 'fillForm',
|
||||
fillScript: fillScript
|
||||
}, { frameId: pageDetails[i].frameId }, $window.close);
|
||||
|
||||
}, { frameId: pageDetails[i].frameId }, function () {
|
||||
if (login.totp && tokenService.getPremium()) {
|
||||
totpService.isAutoCopyEnabled().then(function (enabled) {
|
||||
if (enabled) {
|
||||
@@ -96,8 +95,14 @@ angular
|
||||
if (code) {
|
||||
utilsService.copyToClipboard(code);
|
||||
}
|
||||
|
||||
$window.close();
|
||||
});
|
||||
}
|
||||
else {
|
||||
$window.close();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user