Fixed issu #1: Pause/Stop is not displayed correctly

This commit is contained in:
Timo 2024-11-08 13:15:48 +01:00 committed by GitHub
parent cd2de15b2b
commit 5b293c4105
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,7 +38,7 @@ function updateRecordingLabel(bool){
action: "guideLenght" action: "guideLenght"
}, (response) => { }, (response) => {
if(response.stepCount !== 0) startLabel = "Resume"; if(response.stepCount !== 0) startLabel = "Resume";
toggleRecordingBtn.textContent = bool ? "Pause/Stop" : startLabel; toggleRecordingBtn.textContent = bool ? "Pause / Stop" : startLabel;
}); });
} }
catch(error){ catch(error){
@ -62,4 +62,4 @@ function exportJSON(object, filename){
// clear guide // clear guide
chrome.runtime.sendMessage({action: "clearGuide"}); chrome.runtime.sendMessage({action: "clearGuide"});
} }