From 6b6a0d7b4f55bc5809ae46d6eb9743a8c3cbdcef Mon Sep 17 00:00:00 2001 From: Alexis Svinartchouk Date: Tue, 26 Feb 2019 15:24:53 +0100 Subject: [PATCH] Avoid `Invalid percentage` exceptions Changelog-entry: Avoid `Invalid percentage` exceptions Change-type: patch --- lib/gui/app/os/window-progress.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gui/app/os/window-progress.js b/lib/gui/app/os/window-progress.js index 2efb4c1e..c92d8137 100644 --- a/lib/gui/app/os/window-progress.js +++ b/lib/gui/app/os/window-progress.js @@ -91,7 +91,7 @@ exports.currentWindow = electron.remote.getCurrentWindow() */ exports.set = (state) => { // eslint-disable-next-line no-eq-null - if (state.percentage !== null) { + if (state.percentage != null) { exports.currentWindow.setProgressBar(utils.percentageToFloat(state.percentage)) } exports.currentWindow.setTitle(getWindowTitle(state))