Skip to content

Commit 39ad101

Browse files
author
Brian Vaughn
committed
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.
1 parent 33da657 commit 39ad101

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/react-devtools/app.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const { join } = require('path');
55

66
const argv = require('minimist')(process.argv.slice(2));
77
const projectRoots = argv._;
8-
const defaultThemeName = argv.theme;
98

109
let mainWindow = null;
1110

@@ -35,14 +34,6 @@ app.on('ready', function() {
3534
'window.devtools.setProjectRoots(' + JSON.stringify(projectRoots) + ')'
3635
);
3736

38-
if (argv.theme) {
39-
mainWindow.webContents.executeJavaScript(
40-
'window.devtools.setDefaultThemeName(' +
41-
JSON.stringify(defaultThemeName) +
42-
')'
43-
);
44-
}
45-
4637
// Emitted when the window is closed.
4738
mainWindow.on('closed', function() {
4839
mainWindow = null;

0 commit comments

Comments
 (0)