From 4163e15030babb5337697aba6f0bfb43114d6938 Mon Sep 17 00:00:00 2001 From: ww24 Date: Thu, 11 Jul 2024 01:51:36 +0900 Subject: [PATCH] feat(settings): add a flag that open the option page after recording --- src/configuration.ts | 2 ++ src/element/settings.ts | 8 +++++++- src/service_worker.ts | 33 ++++++++++++++++++++++++--------- 3 files changed, 33 insertions(+), 10 deletions(-) diff --git a/src/configuration.ts b/src/configuration.ts index 39c641c..bafed5b 100644 --- a/src/configuration.ts +++ b/src/configuration.ts @@ -19,6 +19,7 @@ export class Configuration { enableBugTracking: boolean updatedAt: number userId: string + openOptionPage: boolean constructor() { this.windowSize = { width: 1920, @@ -38,6 +39,7 @@ export class Configuration { this.enableBugTracking = true this.updatedAt = 0 this.userId = '' + this.openOptionPage = true } static restoreDefault({ userId }: Configuration): Configuration { const config = new Configuration() diff --git a/src/element/settings.ts b/src/element/settings.ts index 3eb9f2f..cba6f05 100644 --- a/src/element/settings.ts +++ b/src/element/settings.ts @@ -118,6 +118,11 @@ export class Settings extends LitElement { +

Option

+

Privacy