From b7d36044b02be63c3be434d0adc393a2ed937f38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20Garci=CC=81a=20Hierro?= Date: Tue, 21 Jan 2020 20:18:32 +0000 Subject: [PATCH] Remove double initialization of helper.defaultsDialog helper.defaultsDialog.init() was called from both onConnect() and onValidFirmware(). Thanks to @dzikuvx for pointing out that just the last call was enough. --- js/serial_backend.js | 1 - 1 file changed, 1 deletion(-) diff --git a/js/serial_backend.js b/js/serial_backend.js index 0e325531..732380e5 100755 --- a/js/serial_backend.js +++ b/js/serial_backend.js @@ -340,7 +340,6 @@ function onConnect() { }, 100); helper.interval.add('global_data_refresh', helper.periodicStatusUpdater.run, helper.periodicStatusUpdater.getUpdateInterval(serial.bitrate), false); - helper.defaultsDialog.init(); } function onClosed(result) {