mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Removed reference to setDefaultThemeName() method
This functionality was added to v3 to support external changing of theme at runtime. This isn't supported in v4.
This commit is contained in:
Vendored
-9
@@ -5,7 +5,6 @@ const { join } = require('path');
|
||||
|
||||
const argv = require('minimist')(process.argv.slice(2));
|
||||
const projectRoots = argv._;
|
||||
const defaultThemeName = argv.theme;
|
||||
|
||||
let mainWindow = null;
|
||||
|
||||
@@ -35,14 +34,6 @@ app.on('ready', function() {
|
||||
'window.devtools.setProjectRoots(' + JSON.stringify(projectRoots) + ')'
|
||||
);
|
||||
|
||||
if (argv.theme) {
|
||||
mainWindow.webContents.executeJavaScript(
|
||||
'window.devtools.setDefaultThemeName(' +
|
||||
JSON.stringify(defaultThemeName) +
|
||||
')'
|
||||
);
|
||||
}
|
||||
|
||||
// Emitted when the window is closed.
|
||||
mainWindow.on('closed', function() {
|
||||
mainWindow = null;
|
||||
|
||||
Reference in New Issue
Block a user