From 39ad101ea2e1d92ee78174e834a4dad615c5d2ad Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Sat, 20 Jul 2019 09:28:09 -0700 Subject: [PATCH] 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. --- packages/react-devtools/app.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages/react-devtools/app.js b/packages/react-devtools/app.js index c9b415ea4961f..679dfb70df5c5 100644 --- a/packages/react-devtools/app.js +++ b/packages/react-devtools/app.js @@ -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;