diff options
Diffstat (limited to 'packages/main/src/devTools.ts')
-rw-r--r-- | packages/main/src/devTools.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/main/src/devTools.ts b/packages/main/src/devTools.ts index 7c7c86a..398904c 100644 --- a/packages/main/src/devTools.ts +++ b/packages/main/src/devTools.ts | |||
@@ -21,6 +21,20 @@ | |||
21 | import type { BrowserWindow } from 'electron'; | 21 | import type { BrowserWindow } from 'electron'; |
22 | 22 | ||
23 | /** | 23 | /** |
24 | * URL prefixes Sophie is allowed load in dev mode. | ||
25 | * | ||
26 | * In dev mode, in addition to the application itself, | ||
27 | * Sophie must be able do download and load the devtools and related extensions, | ||
28 | * so we have to make exceptions in the UI process request filter. | ||
29 | */ | ||
30 | export const DEVMODE_ALLOWED_URL_PREFIXES = [ | ||
31 | 'chrome-extension:', | ||
32 | 'devtools:', | ||
33 | 'https://clients2.google.com/service/update2/crx', | ||
34 | 'https://clients2.googleusercontent.com/crx', | ||
35 | ]; | ||
36 | |||
37 | /** | ||
24 | * Installs the react and redux developer tools extensions. | 38 | * Installs the react and redux developer tools extensions. |
25 | * | 39 | * |
26 | * We use the redux devtools and connect the mobx store to it with `mst-middlewares`, | 40 | * We use the redux devtools and connect the mobx store to it with `mst-middlewares`, |