Skip to content

Commit

Permalink
Merge pull request #799 from TokenScript/fix/deny-connection
Browse files Browse the repository at this point in the history
enable cookie storage for when user denies connection to outlet
  • Loading branch information
nicktaras authored Aug 17, 2023
2 parents feabea2 + 4ce1c6a commit 7c73828
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/outlet/whitelist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,12 @@ export class Whitelist {
// the decline by accident.
createCookie('tn-user-denied-access-to-connection', true, 10)

reject(new Error('USER_ABORT'))
// store cookie whilst allowing error to be thrown.
try {
reject(new Error('USER_ABORT'))
} catch (e) {
reject(new Error('USER_ABORT'))
}
})

this.showWhitelistCallback()
Expand Down

0 comments on commit 7c73828

Please sign in to comment.