Better handling of network disconnection/reconnection (#1546)
* Ensure that our preload.js setImmediate call finds right function FREEBIE * Our own socket close event, better logging, unregistration FREEBIE * Return CLOSED for NetworkStatusView if we've fully disconnected * background.js: Remove messageReceiver = null, log in connect() A null messageReciever makes the NetworkStatusView think we're online. FREEBIE
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
|
||||
// Linux seems to periodically let the event loop stop, so this is a global workaround
|
||||
setInterval(function() {
|
||||
setImmediate(function() {});
|
||||
window.nodeSetImmediate(function() {});
|
||||
}, 1000);
|
||||
|
||||
window.EmojiConvertor = require('emoji-js');
|
||||
|
Reference in New Issue
Block a user