MCPcopy Create free account
hub / github.com/deeppatel234/react-context-devtool / getSettings

Function getSettings

extension/core/background/utils.js:18–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16};
17
18export const getSettings = () => {
19 const defaultSettings = {
20 startDebugWhenV2: "extensionLoad",
21 // startDebugWhenV2: "pageLoad",
22 debugUseReducer: true,
23 debugContext: true,
24 };
25
26 return new Promise((resolve) => {
27 chrome.storage.local.get(
28 ["startDebugWhenV2", "debugUseReducer", "debugContext"],
29 (settings) => {
30 const settingsToUse = {
31 ...defaultSettings,
32 ...settings,
33 };
34
35 resolve(settingsToUse);
36 }
37 );
38 });
39};
40
41export const getCurrentTab = async () => {
42 if (!chrome.tabs?.query) {

Callers 1

index.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected