From bfd841486ec3baff92e20955d61c1d390746919c Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Tue, 13 Aug 2019 18:55:50 -0400 Subject: [PATCH] Fixed incorrect message and changed formatting --- _locales/en/messages.json | 6 +++--- popup.js | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index f29c36f8..7a3e9064 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -82,16 +82,16 @@ "sponsorStart": { "message": "Sponsorship Starts Now" }, - "sponsorEND": { + "sponsorEnd": { "message": "Sponsorship Ends Now" }, - "noVIDEOID": { + "noVideoID": { "message": "This probably isn't a YouTube tab, or you clicked too early. \n If you know this is a YouTube tab,\n close this popup and open it again." }, "Voted": { "message": "Thanks for voting!" }, - "voteFAIL": { + "voteFail": { "message": "You have already voted this way before." }, "serverDown": { diff --git a/popup.js b/popup.js index 76d7dba8..8bf8d020 100644 --- a/popup.js +++ b/popup.js @@ -233,7 +233,7 @@ function runThePopup() { if (sponsorTimesStorage != undefined && sponsorTimesStorage.length > 0) { if (sponsorTimesStorage[sponsorTimesStorage.length - 1] != undefined && sponsorTimesStorage[sponsorTimesStorage.length - 1].length < 2) { startTimeChosen = true; - SB.sponsorStart.innerHTML = chrome.i18n.getMessage("sponsorEND"); + SB.sponsorStart.innerHTML = chrome.i18n.getMessage("sponsorEnd"); } sponsorTimes = sponsorTimesStorage; @@ -966,7 +966,7 @@ function runThePopup() { //update startTimeChosen letiable if (!startTimeChosen) { startTimeChosen = true; - SB.sponsorStart.innerHTML = chrome.i18n.getMessage("sponsorEND"); + SB.sponsorStart.innerHTML = chrome.i18n.getMessage("sponsorEnd"); } else { resetStartTimeChosen(); } @@ -1051,7 +1051,7 @@ function runThePopup() { //this is not a YouTube video page function displayNoVideo() { - document.getElementById("loadingIndicator").innerHTML = chrome.i18n.getMessage("sponsor404"); + document.getElementById("loadingIndicator").innerHTML = chrome.i18n.getMessage("noVideoID"); } function reportAnIssue() { @@ -1091,7 +1091,7 @@ function runThePopup() { addVoteMessage(chrome.i18n.getMessage("Voted"), UUID) } else if (response.successType == 0) { //failure: duplicate vote - addVoteMessage(chrome.i18n.getMessage("voteFAIL"), UUID) + addVoteMessage(chrome.i18n.getMessage("voteFail"), UUID) } else if (response.successType == -1) { if (response.statusCode == 502) { addVoteMessage(chrome.i18n.getMessage("serverDown"), UUID)