switched to strict inequality

This commit is contained in:
Myryk
2024-05-29 18:11:03 +02:00
parent cdf4b7dc06
commit b2574cf2af
@@ -59,7 +59,7 @@ export default (monitor = 0) => {
}, 'notify::screen-value'),
progressSetup: (self) => self.hook(Brightness[monitor], (progress) => {
const updateValue = Brightness[monitor].screen_value;
if (updateValue != progress.value) Indicator.popup(1);
if (updateValue !== progress.value) Indicator.popup(1);
progress.value = updateValue;
}, 'notify::screen-value'),
});
@@ -88,7 +88,7 @@ export default (monitor = 0) => {
progressSetup: (self) => self.hook(Audio, (progress) => {
const updateValue = Audio.speaker?.volume;
if (!isNaN(updateValue)) {
if (updateValue != progress.value) Indicator.popup(1);
if (updateValue !== progress.value) Indicator.popup(1);
progress.value = updateValue;
}
}),