Use triple equals in more places

This commit is contained in:
Jonathan Müller
2022-06-26 19:43:03 +02:00
parent e7e873866d
commit 2499f574ef

View File

@ -40,11 +40,11 @@ function registerMPRIS(win) {
if (manuallySwitchingStatus) if (manuallySwitchingStatus)
return; return;
if (mode == "Repeat off") if (mode === "Repeat off")
currentLoopStatus = "None"; currentLoopStatus = "None";
else if (mode == "Repeat one") else if (mode === "Repeat one")
currentLoopStatus = "Track"; currentLoopStatus = "Track";
else if (mode == "Repeat all") else if (mode === "Repeat all")
currentLoopStatus = "Playlist"; currentLoopStatus = "Playlist";
player.loopStatus = currentLoopStatus; player.loopStatus = currentLoopStatus;