There was an error while loading. Please reload this page.
1 parent fedbac1 commit ec96623Copy full SHA for ec96623
packages/ipfs-repo/src/idstore.js
@@ -67,7 +67,7 @@ export function createIdStore (store) {
67
68
// process.nextTick runs on the microtask queue, setImmediate runs on the next
69
// event loop iteration so is slower. Use process.nextTick if it is available.
70
- const runner = process && process.nextTick ? process.nextTick : setImmediate
+ const runner = globalThis.process && globalThis.process.nextTick ? globalThis.process.nextTick : (globalThis.setImmediate || globalThis.setTimeout)
71
72
runner(async () => {
73
try {
0 commit comments