Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit a56bcbf

Browse files
achingbrainAlan Shaw
authored andcommitted
fix: error when preloding is disabled in the browser (#2086)
Sometimes you don't want to preload everything, if your code is an example or a demo. In that case you'd turn off preloading but `setImmediate` is not a thing in browsers-other-than-IE so pull in `async/set-immediate` instead
1 parent e7d6d3a commit a56bcbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/mfs-preload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
const debug = require('debug')
4-
4+
const setImmediate = require('async/setImmediate')
55
const log = debug('ipfs:mfs-preload')
66
log.error = debug('ipfs:mfs-preload:error')
77

0 commit comments

Comments
 (0)