allow to explicit register callbacks for the broadcasted push messages

egw.registerPush(Function)

The callback should have a bound context, if it requires one!
This commit is contained in:
Ralf Becker
2021-07-30 15:21:58 +02:00
parent eae9c97caa
commit 5f7bafd030
2 changed files with 38 additions and 0 deletions

View File

@ -459,6 +459,9 @@ egw.extend('message', egw.MODULE_WND_LOCAL, function(_app, _wnd)
app_obj.push(pushData);
}
}
// call the global registered push callbacks
this.registerPush(pushData);
}
};