AlexTorresDev / custom-electron-titlebar

Custom electon title bar inpire on VS Code title bar
MIT License
866 stars 148 forks source link

ReferenceError: navigator is not defined #158

Closed ldavidsp closed 2 years ago

ldavidsp commented 3 years ago

A JavaScript error occurred in the main process Uncaught Exception: ReferenceError: navigator is not defined

node_modules/custom-electron-titlebar/browser/browser.js:131:19)
    at Module._compile (internal/modules/cjs/loader.js:1078:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10)
    at Module.load (internal/modules/cjs/loader.js:935:32)
    at Module._load (internal/modules/cjs/loader.js:776:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12789)
    at Module.require (internal/modules/cjs/loader.js:959:19)
    at require (internal/modules/cjs/helpers.js:88:18)
ericblade commented 3 years ago

looks like you're trying to load it in your main not in your renderer.