How to use the ElectronProcessType function from util

Find comprehensive JavaScript util.ElectronProcessType code examples handpicked from public code repositorys.

4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
function GetElectronProcessType() {
    const electronProcessType = util.GetElectronProcessType();
    switch (electronProcessType) {
        case util.ElectronProcessType.ElectronMainNode:
            return 'main';
        case util.ElectronProcessType.Node:
        case util.ElectronProcessType.ElectronNode:
            return 'node';
        case util.ElectronProcessType.Browser:
        case util.ElectronProcessType.ElectronBrowser:
fork icon0
star icon0
watch icon1

+ 41 other calls in file