Sync on both load and reconnect.
This commit is contained in:
parent
107749e91a
commit
95dc519019
@ -319,5 +319,5 @@ function initialize() {
|
||||
// Local init is done, let's sync
|
||||
// We always ask for synced settings even if it is disabled.
|
||||
// Settings can be mandatory to sync and it is used to determine sync base state.
|
||||
socket.emit("settings:get");
|
||||
socket.emit("setting:get");
|
||||
}
|
||||
|
@ -8,6 +8,8 @@ const webpush = require("../webpush");
|
||||
|
||||
socket.on("configuration", function(data) {
|
||||
if (options.initialized) {
|
||||
// Likely a reconnect, request sync for possibly missed settings.
|
||||
socket.emit("setting:get");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user