Detect phantom tabs using PING in the worker

This commit is contained in:
yflory
2019-04-15 14:21:04 +02:00
parent ab832643f7
commit 52dbc296ee
4 changed files with 13 additions and 9 deletions

View File

@@ -874,6 +874,10 @@ define([
Cryptpad.cursor.execCommand(data, cb);
});
Cryptpad.onTimeoutEvent.reg(function () {
sframeChan.event('EV_WORKER_TIMEOUT');
});
if (cfg.messaging) {
Notifier.getPermission();