feat: add isDeveloper

This commit is contained in:
doprz
2025-03-02 20:47:31 -06:00
parent 3dbacf0d65
commit c6452c4f2b
3 changed files with 52 additions and 27 deletions

View File

@@ -4,6 +4,8 @@ import { createLocalStore, debugStore } from 'chrome-extension-toolkit';
* A store that is used to store data that is only relevant during development
*/
interface IDevStore {
/** whether the user is a developer */
isDeveloper: boolean;
/** the tabId for the debug tab */
debugTabId?: number;
/** whether the debug tab is visible */
@@ -17,6 +19,7 @@ interface IDevStore {
}
export const DevStore = createLocalStore<IDevStore>({
isDeveloper: false,
debugTabId: undefined,
isTabReloading: true,
wasDebugTabVisible: false,