Refactor webviewState to just state

This commit is contained in:
Saoud Rizwan
2024-07-07 21:19:16 -04:00
parent 2622777fc8
commit 62e6ad0a78
3 changed files with 13 additions and 13 deletions

View File

@@ -2,8 +2,8 @@
// webview will hold state
export interface ExtensionMessage {
type: "text" | "action" | "webviewState"
type: "text" | "action" | "state"
text?: string
action?: "plusButtonTapped" | "settingsButtonTapped"
webviewState?: { didOpenOnce: boolean, apiKey?: string, maxRequestsPerTask?: number }
state?: { didOpenOnce: boolean, apiKey?: string, maxRequestsPerTask?: number }
}