We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ec5da2 commit 0b911ecCopy full SHA for 0b911ec
src/fixtures.js
@@ -1,12 +1,12 @@
1
/* global self */
2
'use strict'
3
4
-const { isNode } = require('ipfs-utils/src/env')
+const { isNode, isElectron } = require('ipfs-utils/src/env')
5
const path = require('path')
6
7
// note: filePath needs to be relative to the module root
8
module.exports = function loadFixtures (filePath, module) {
9
- if (isNode) {
+ if (isNode || isElectron) {
10
if (module) {
11
filePath = path.join(module, filePath)
12
}
0 commit comments