Further workaround to try to push node.js event loop forward (#1511)

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-09-28 14:47:49 -07:00 committed by GitHub
parent 6323f598b5
commit 2d650bd627

View file

@ -39,5 +39,10 @@
window.nodeXMLHttpRequest = require("./js/XMLHttpRequest").XMLHttpRequest;
window.nodeWebSocket = require("websocket").w3cwebsocket;
// Linux seems to periodically let the event loop stop, so this is a global workaround
setInterval(function() {
setImmediate(function() {});
}, 1000);
window.EmojiConvertor = require('emoji-js');
})();