From f3f6dd171b8eb2ba329d9ff5e4003f0848d161fd Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sat, 28 Dec 2019 23:56:38 -0500 Subject: [PATCH] Switched vote and view to POST. --- background.js | 2 +- content.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/background.js b/background.js index 28fd6bb0..7848d1da 100644 --- a/background.js +++ b/background.js @@ -122,7 +122,7 @@ function submitVote(type, UUID, callback) { } //publish this vote - sendRequestToServer("GET", "/api/voteOnSponsorTime?UUID=" + UUID + "&userID=" + userID + "&type=" + type, function(xmlhttp, error) { + sendRequestToServer("POST", "/api/voteOnSponsorTime?UUID=" + UUID + "&userID=" + userID + "&type=" + type, function(xmlhttp, error) { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { callback({ successType: 1 diff --git a/content.js b/content.js index fb0b13b0..d56207db 100644 --- a/content.js +++ b/content.js @@ -602,7 +602,7 @@ function skipToTime(v, index, sponsorTimes, openNotice) { //send telemetry that a this sponsor was skipped happened if (trackViewCount) { - sendRequestToServer("GET", "/api/viewedVideoSponsorTime?UUID=" + currentUUID); + sendRequestToServer("POST", "/api/viewedVideoSponsorTime?UUID=" + currentUUID); } }