Avoid Invalid percentage exceptions

Changelog-entry: Avoid `Invalid percentage` exceptions
Change-type: patch
This commit is contained in:
Alexis Svinartchouk 2019-02-26 15:24:53 +01:00
parent 4317892421
commit 6b6a0d7b4f

View File

@ -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))