diff --git a/client/js/options.js b/client/js/options.js index bab2a33f..fcd6e177 100644 --- a/client/js/options.js +++ b/client/js/options.js @@ -64,7 +64,6 @@ userSettings = null; module.exports = { alwaysSync, noSync, - initialized: false, settings, syncAllSettings, processSetting, @@ -159,8 +158,6 @@ function processSetting(name, value, save) { } function initialize() { - module.exports.initialized = true; - // Settings have now entirely updated, apply settings to the client. for (const name in settings) { processSetting(name, settings[name], false); diff --git a/client/js/socket-events/configuration.js b/client/js/socket-events/configuration.js index bdbcba1c..c83db2d9 100644 --- a/client/js/socket-events/configuration.js +++ b/client/js/socket-events/configuration.js @@ -21,15 +21,8 @@ window.addEventListener("beforeinstallprompt", (installPromptEvent) => { $("#native-app").prop("hidden", false); }); -socket.on("configuration", function(data) { +socket.once("configuration", function(data) { store.commit("isFileUploadEnabled", data.fileUpload); - - if (options.initialized) { - // Likely a reconnect, request sync for possibly missed settings. - socket.emit("setting:get"); - return; - } - store.commit("serverConfiguration", data); if (data.fileUpload) {