[MM-42024] Enable React Developer Tools for nightly builds (#2018)

This commit is contained in:
Devin Binnie
2022-03-16 11:29:26 -04:00
committed by GitHub
parent 14197d1707
commit f79c445920
4 changed files with 8 additions and 3 deletions

View File

@@ -302,7 +302,10 @@ function initializeAfterAppReady() {
AutoLauncher.upgradeAutoLaunch();
}
if (global.isDev) {
// eslint-disable-next-line no-undef
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
if (global.isDev || __IS_NIGHTLY_BUILD__) {
installExtension(REACT_DEVELOPER_TOOLS).
then((name) => log.info(`Added Extension: ${name}`)).
catch((err) => log.error('An error occurred: ', err));