mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
build: allow use of BUILDFLAG directives from within JS code (#20328)
This commit is contained in:
@@ -157,12 +157,10 @@ app._setDefaultAppPaths(packagePath);
|
||||
// Load the chrome devtools support.
|
||||
require('@electron/internal/browser/devtools');
|
||||
|
||||
const features = process.electronBinding('features');
|
||||
|
||||
// Load the chrome extension support.
|
||||
require('@electron/internal/browser/chrome-extension-shim');
|
||||
|
||||
if (features.isRemoteModuleEnabled()) {
|
||||
if (BUILDFLAG(ENABLE_REMOTE_MODULE)) {
|
||||
require('@electron/internal/browser/remote/server');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user