Skip to content

Commit e2e8e3b

Browse files
authored
Fixed compatibility with electron by removing legacy special case per #925 (#982)
1 parent 15ed597 commit e2e8e3b

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

package-lock.json

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
"dependencies": {
6565
"bmp-js": "^0.1.0",
6666
"idb-keyval": "^6.2.0",
67-
"is-electron": "^2.2.2",
6867
"is-url": "^1.2.4",
6968
"node-fetch": "^2.6.9",
7069
"opencollective-postinstall": "^2.0.3",

src/utils/getEnvironment.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
const isElectron = require('is-electron');
2-
31
module.exports = (key) => {
42
const env = {};
53

64
if (typeof WorkerGlobalScope !== 'undefined') {
75
env.type = 'webworker';
8-
} else if (isElectron()) {
9-
env.type = 'electron';
106
} else if (typeof document === 'object') {
117
env.type = 'browser';
128
} else if (typeof process === 'object' && typeof require === 'function') {

0 commit comments

Comments
 (0)