Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix compatibility with Electron apps (#823)
* Update cache.js The recent change made in v4.1.5 breaks compatibility with Electron based applications. This is because the renderer process within Electron uses a similar library as the one within Node JS, but has small differences to the actual library being used. You can read more about it (and the suggested fix) over at [electron/electron#21162](electron/electron#21162). This change uses the suggested line in the linked issue to specify that `setTimeout` should use the functionality built into Node instead of the Electron based one. I've already tested this fix in my project and it seems to work fine with this change. * Add setTimeout variable for Electron compatibility to info.js * Fix linter issue
- Loading branch information