Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed the environment check 🤦‍♂️
Browse files Browse the repository at this point in the history
kraenhansen committed Jan 12, 2022
1 parent fc68872 commit bc0a0c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ const utils = require("./utils");
const analytics = require("./submit-analytics");

const environment = utils.getEnvironment();
if (environment !== "node.js" || environment !== "electron") {
if (environment !== "node.js" && environment !== "electron") {
throw new Error(`Unexpected execution environment (${environment})`);
}

0 comments on commit bc0a0c0

Please sign in to comment.