2.1.0 release

This commit is contained in:
Dmitrii Selivanov committed 2022-01-08 23:22:29 +03:00
1 parent a43811f2d7
commit cebe938ce0
7 files changed
+79 -44

No files matched your search

+12 -7
View File
@@ -28,12 +28,17 @@ api.runtime.onMessage.addListener((request, sender, sendResponse) => {
} else if (request.message == "set_state") {
// chrome.identity.getAuthToken({ interactive: true }, function (token) {
let token = "";
fetch(`${apiUrl}/votes?videoId=${request.videoId}&likeCount=${request.likeCount || ''}`, {
method: "GET",
headers: {
Accept: "application/json",
},
})
fetch(
`${apiUrl}/votes?videoId=${request.videoId}&likeCount=${
request.likeCount || ""
}`,
{
method: "GET",
headers: {
Accept: "application/json",
},
}
)
.then((response) => response.json())
.then((response) => {
sendResponse(response);
@@ -271,4 +276,4 @@ function isChrome() {
function isFirefox() {
return typeof browser !== "undefined" && typeof browser.runtime !== "undefined";
}
}