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.
Brian Vaughn committed
Jul 20, 2019 at 09:28 UTC
39ad101ea2e1d92ee78174e834a4dad615c5d2ad
1 file changed
-9
packages/react-devtools/app.js
-9
@@ -5,7 +5,6 @@ const { join } = require('path');
5
6
const argv = require('minimist')(process.argv.slice(2));
7
const projectRoots = argv._;
8
-const defaultThemeName = argv.theme;
8
9
let mainWindow = null;
10
@@ -35,14 +34,6 @@ app.on('ready', function() {
34
'window.devtools.setProjectRoots(' + JSON.stringify(projectRoots) + ')'
35
);
36
38
- if (argv.theme) {
39
- mainWindow.webContents.executeJavaScript(
40
- 'window.devtools.setDefaultThemeName(' +
41
- JSON.stringify(defaultThemeName) +
42
- ')'
43
- );
44
- }
45
-
37
// Emitted when the window is closed.
38
mainWindow.on('closed', function() {
39
mainWindow = null;