Sync on both load and reconnect.

This commit is contained in:
creesch 2018-03-30 09:49:02 +02:00
parent 107749e91a
commit 95dc519019
2 changed files with 3 additions and 1 deletions

View file

@ -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");
}

View file

@ -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;
}