mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +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:
9
packages/react-devtools/app.js
vendored
9
packages/react-devtools/app.js
vendored
@@ -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