From 5132645a1cd74b3d773d7a04dbdd8ac2e9fd586d Mon Sep 17 00:00:00 2001 From: Postcount CI Date: Wed, 1 Mar 2023 13:32:54 +0700 Subject: [PATCH] fix: Add check for isFirstRun to error report setting --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 97dcffd..493f254 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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),