mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 14:07:13 +03:00
Retain decimals in seconds value
This commit is contained in:
@@ -671,7 +671,7 @@ async function runThePopup(messageListener?: MessageListener) {
|
||||
let minutes = <HTMLInputElement> <unknown> document.getElementById(idStartName + "Minutes" + index);
|
||||
let seconds = <HTMLInputElement> <unknown> document.getElementById(idStartName + "Seconds" + index);
|
||||
|
||||
return parseInt(minutes.value) * 60 + parseInt(seconds.value);
|
||||
return parseInt(minutes.value) * 60 + parseFloat(seconds.value);
|
||||
}
|
||||
|
||||
function saveSponsorTimeEdit(index, closeEditMode = true) {
|
||||
@@ -1128,4 +1128,4 @@ if (chrome.tabs != undefined) {
|
||||
runThePopup();
|
||||
}
|
||||
|
||||
export default runThePopup;
|
||||
export default runThePopup;
|
||||
|
||||
Reference in New Issue
Block a user