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

Commit

Permalink
fix: error when preloding is disabled in the browser (#2086)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
achingbrain authored and Alan Shaw committed May 21, 2019
1 parent e7d6d3a commit a56bcbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/mfs-preload.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const debug = require('debug')

const setImmediate = require('async/setImmediate')
const log = debug('ipfs:mfs-preload')
log.error = debug('ipfs:mfs-preload:error')

Expand Down

0 comments on commit a56bcbf

Please sign in to comment.