From 95dc519019483cf8f85197b61e9f799c0987a87c Mon Sep 17 00:00:00 2001 From: creesch Date: Fri, 30 Mar 2018 09:49:02 +0200 Subject: [PATCH] Sync on both load and reconnect. --- client/js/options.js | 2 +- client/js/socket-events/configuration.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/client/js/options.js b/client/js/options.js index 606dfb92..88781bee 100644 --- a/client/js/options.js +++ b/client/js/options.js @@ -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"); } diff --git a/client/js/socket-events/configuration.js b/client/js/socket-events/configuration.js index 2a6fec17..12125234 100644 --- a/client/js/socket-events/configuration.js +++ b/client/js/socket-events/configuration.js @@ -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; }