Skip to content

Commit 0b911ec

Browse files
authored
fix: fix electron detection (#520)
1 parent 2ec5da2 commit 0b911ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fixtures.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/* global self */
22
'use strict'
33

4-
const { isNode } = require('ipfs-utils/src/env')
4+
const { isNode, isElectron } = require('ipfs-utils/src/env')
55
const path = require('path')
66

77
// note: filePath needs to be relative to the module root
88
module.exports = function loadFixtures (filePath, module) {
9-
if (isNode) {
9+
if (isNode || isElectron) {
1010
if (module) {
1111
filePath = path.join(module, filePath)
1212
}

0 commit comments

Comments
 (0)