mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 06:18:45 +08:00
refactor: migrate environment to BUILD_CONFIG (#8206)
This commit is contained in:
@@ -254,10 +254,10 @@ export async function openUrlInHiddenWindow(urlObj: URL) {
|
||||
preload: join(__dirname, './preload.js'),
|
||||
additionalArguments: await getWindowAdditionalArguments(),
|
||||
},
|
||||
show: environment.isDebug,
|
||||
show: BUILD_CONFIG.debug,
|
||||
});
|
||||
|
||||
if (environment.isDebug) {
|
||||
if (BUILD_CONFIG.debug) {
|
||||
win.webContents.openDevTools({
|
||||
mode: 'detach',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user