Skip to content

Commit

Permalink
[MS] Avoid authorizing the same url multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-7 committed Oct 9, 2024
1 parent 20a5114 commit 2e655c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/electron/src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ export class ElectronCapacitorApp {
}

addAuthorizedURL(url: string): void {
ALLOWED_URL_LIST.push(url);
if (!ALLOWED_URL_LIST.includes(url)) {
ALLOWED_URL_LIST.push(url);
}
}

updateConfig(newConfig: object): void {
Expand Down

0 comments on commit 2e655c9

Please sign in to comment.