mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-18 21:48:33 +03:00
Fixed IDs being localized in some parts.
This commit is contained in:
8
popup.js
8
popup.js
@@ -740,8 +740,8 @@ function runThePopup() {
|
|||||||
tabs[0].id,
|
tabs[0].id,
|
||||||
{message: "getCurrentTime"},
|
{message: "getCurrentTime"},
|
||||||
function (response) {
|
function (response) {
|
||||||
let minutes = document.getElementById(idStartName + chrome.i18n.getMessage("Mins") + index);
|
let minutes = document.getElementById(idStartName + "Minutes" + index);
|
||||||
let seconds = document.getElementById(idStartName + chrome.i18n.getMessage("Secs") + index);
|
let seconds = document.getElementById(idStartName + "Seconds" + index);
|
||||||
|
|
||||||
minutes.value = getTimeInMinutes(response.currentTime);
|
minutes.value = getTimeInMinutes(response.currentTime);
|
||||||
seconds.value = getTimeInFormattedSeconds(response.currentTime);
|
seconds.value = getTimeInFormattedSeconds(response.currentTime);
|
||||||
@@ -752,8 +752,8 @@ function runThePopup() {
|
|||||||
//id start name is whether it is the startTime or endTime
|
//id start name is whether it is the startTime or endTime
|
||||||
//gives back the time in seconds
|
//gives back the time in seconds
|
||||||
function getSponsorTimeEditTimes(idStartName, index) {
|
function getSponsorTimeEditTimes(idStartName, index) {
|
||||||
let minutes = document.getElementById(idStartName + chrome.i18n.getMessage("Mins") + index);
|
let minutes = document.getElementById(idStartName + "Minutes" + index);
|
||||||
let seconds = document.getElementById(idStartName + chrome.i18n.getMessage("Secs") + index);
|
let seconds = document.getElementById(idStartName + "Seconds" + index);
|
||||||
|
|
||||||
return parseInt(minutes.value) * 60 + parseFloat(seconds.value);
|
return parseInt(minutes.value) * 60 + parseFloat(seconds.value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user