electron-is-overwolf
Checks if the running Electron process is ow-electron.
Inspired by electron-is-dev. Helps when buliding an Electron app that coexists with ow-electron.
This package must be used from the Electron main process.
Install
$ npm install @overwolf/electron-is-overwolf
Usage
import { isElectronOverwolf } from 'electron-is-overwolf';
import { overwolfInfo } from 'electron-is-overwolf';
if (isElectronOverwolf) {
console.log('Running in Overwolf electron build');
}
app.whenReady().then(async () => {
if (isElectronOverwolf) {
console.log(`Overwolf Electron. App uid: ${overwolfInfo().appId}`);
}
});