juliangruber / juliangruber/offline

Throws error in electron

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
6
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Not sure if you'll see this given the project's age, but it's worth a shot.

When I run this in my electron project, I get

```
(node:244937) UnhandledPromiseRejectionWarning: ReferenceError: navigator is not defined
at module.exports (/home/kainoa/Documents/DRPCM/gui/node_modules/offline/index.js:8:3)
at createWindow (/home/kainoa/Documents/DRPCM/gui/main.js:51:7)
(node:244937) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:244937) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.