1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 02:33:46 +00:00

safari fix for autofill totp and context menu options

This commit is contained in:
Kyle Spearrin
2018-01-15 23:28:07 -05:00
parent 6efcaaa584
commit 962bd24974
4 changed files with 7 additions and 2 deletions

View File

@@ -86,6 +86,7 @@ export class CurrentController {
cipher: cipher,
pageDetails: this.pageDetails,
fromBackground: false,
doc: this.$window.document,
}).then((totpCode: string) => {
this.$analytics.eventTrack('Autofilled');
if (totpCode && this.platformUtilsService.isFirefox()) {

View File

@@ -54,7 +54,7 @@
{{$ctrl.i18n.addLoginNotificationDesc}}
</div>
</div>
<div class="list-section">
<div class="list-section" ng-if="showDisableContextMenu">
<div class="list-section-items">
<div class="list-section-item list-section-item-checkbox">
<label for="context-menu">{{$ctrl.i18n.disableContextMenuItem}}</label>

View File

@@ -17,6 +17,7 @@ export class OptionsController {
disableAutoTotpCopy = false;
disableContextMenuItem = false;
disableAddLoginNotification = false;
showDisableContextMenu = true;
disableGa = false;
i18n: any;
@@ -25,6 +26,7 @@ export class OptionsController {
private stateService: StateService, private storageService: StorageService,
public messagingService: MessagingService, private $timeout: ng.ITimeoutService) {
this.i18n = i18nService;
this.showDisableContextMenu = !platformUtilsService.isSafari();
$timeout(() => {
PopupUtilsService.initListSectionItemListeners(document, angular);