Skip to content

Commit

Permalink
fix: Add check for isFirstRun to error report setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Postcount CI committed Mar 1, 2023
1 parent ef8c33d commit 5132645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class OpenGatePlugin extends Plugin {
import('./datadog')
}

if (this.settings.allowErrorReport === undefined) {
if (this.settings.allowErrorReport === undefined && !this.settings.isFirstRun) {
new ModalAskForLogPermission(
this.app,
this.onLogPermissionAllow.bind(this),
Expand Down

0 comments on commit 5132645

Please sign in to comment.