@overwolf/electron-is-overwolf
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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}`);
  }
});

/@overwolf/electron-is-overwolf/

    Package Sidebar

    Install

    npm i @overwolf/electron-is-overwolf

    Weekly Downloads

    22

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    3.45 kB

    Total Files

    5

    Last publish

    Collaborators

    • oded-itkin-ow
    • elad.bahar
    • tom.wolf
    • shai.overwolf
    • srabouin
    • davidzoltan
    • omerschapiro