Skip to content

Commit

Permalink
Do not show sync warning when creating new chain on desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyBarabash committed Nov 9, 2021
1 parent 9e1dab9 commit 3d50d5f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions browser/resources/settings/brave_sync_page/brave_sync_setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@ Polymer({
},

handleSyncCodeDialogDone_: function (e) {
const messageText = this.i18n('braveSyncFinalSecurityWarning')
const shouldProceed = confirm(messageText)
if (!shouldProceed) {
return;
if (this.syncCodeDialogType_ === 'input') {
const messageText = this.i18n('braveSyncFinalSecurityWarning')
const shouldProceed = confirm(messageText)
if (!shouldProceed) {
return
}
}

this.submitSyncCode_()
Expand Down

0 comments on commit 3d50d5f

Please sign in to comment.