mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
cleanup
This commit is contained in:
@@ -164,6 +164,12 @@ angular
|
|||||||
}, 1000);
|
}, 1000);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
scope.$on("$destroy", function () {
|
||||||
|
if (interval) {
|
||||||
|
clearInterval(interval);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
scope.clipboardError = function (e) {
|
scope.clipboardError = function (e) {
|
||||||
alert('Your web browser does not support easy clipboard copying.');
|
alert('Your web browser does not support easy clipboard copying.');
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
return apiService.ciphers.postAttachment({ id: loginId }, fd).$promise;
|
return apiService.ciphers.postAttachment({ id: loginId }, fd).$promise;
|
||||||
}).then(function (response) {
|
}).then(function (response) {
|
||||||
$analytics.eventTrack('Added Attachment');
|
$analytics.eventTrack('Added Attachment');
|
||||||
toastr.success('The attachment has been added.');
|
toastr.success('The attachment has been saved.');
|
||||||
closing = true;
|
closing = true;
|
||||||
$uibModalInstance.close(true);
|
$uibModalInstance.close(true);
|
||||||
}, function (err) {
|
}, function (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user