Firefox updated to 0.0.0.6

This commit is contained in:
Dmitrii Selivanov committed 2021-11-22 00:52:36 +03:00
1 parent 62759efb04
commit 5c85cfc425
7 files changed
+209 -73

No files matched your search

+5 -2
View File
@@ -59,7 +59,10 @@ chrome.runtime.onMessageExternal.addListener(
.then((response) => response.text())
.then((text) => {
var result = getDislikesFromYoutubeResponse(text);
sendUserSubmittedStatisticsToApi({...result, videoId: request.videoId});
sendUserSubmittedStatisticsToApi({
...result,
videoId: request.videoId,
});
sendResponse(result);
});
}
@@ -95,7 +98,7 @@ function getDislikesFromYoutubeResponse(htmlResponse) {
likes,
dislikes: Math.round(dislikes),
rating,
viewCount: +jsonResult.viewCount
viewCount: +jsonResult.viewCount,
};
return result;
}