fixed a bug where live wpm setting would not be saved when changed from the settings screen

This commit is contained in:
unknown 2020-05-20 16:10:31 +01:00
parent bf75fc862e
commit e66760cd4d

View file

@ -81,11 +81,13 @@ $(".pageSettings .section.quickTab .buttons .button.off").click(e => {
//live wpm
$(".pageSettings .section.liveWpm .buttons .button.on").click(e => {
config.showLiveWpm = true;
saveConfigToCookie();
showNotification('Live WPM on', 1000);
setSettingsButton('liveWpm', config.showLiveWpm);
})
$(".pageSettings .section.liveWpm .buttons .button.off").click(e => {
config.showLiveWpm = false;
saveConfigToCookie();
showNotification('Live WPM off', 1000);
setSettingsButton('liveWpm', config.showLiveWpm);
})