Skip to content

Commit 833a451

Browse files
author
Rémi Rigal
committed
Cleaned up code
1 parent 49aaff5 commit 833a451

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

js/content-scripts/allocine.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ containerOptions.plexButtonClass = 'bg-gray-800';
77
containerOptions.badgeBackground = '#032541';
88

99
mediaType = document.location.pathname.startsWith('/film') ? 'movie' : 'tv';
10-
console.log(mediaType);
1110

1211
const allocineRegex = /\/(?:film|series)\/\w*=(\d+)(?:\w|-|.)*/;
1312
let matches = document.location.pathname.match(allocineRegex);
@@ -36,7 +35,6 @@ if (matches !== null && matches.length > 1) {
3635
const firstResult = json.results[0];
3736
mediaType = firstResult.mediaType;
3837
chrome.runtime.sendMessage({contentScriptQuery: 'queryMedia', tmdbId: firstResult.id, mediaType: mediaType}, json => {
39-
console.log(json);
4038
mediaInfo = json;
4139
tmdbId = json.id;
4240
console.log(`TMDB id: ${tmdbId}`);

js/overseerr-api.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ function getLoggedUser(callback) {
99
if (xhr.readyState === 4) {
1010
try {
1111
const response = JSON.parse(xhr.responseText);
12-
console.log(response);
1312
if (response.hasOwnProperty('error')) {
1413
if (callback) callback(false, response.error);
1514
} else {

js/overseerr-container.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,12 @@ function insertRequestButton() {
9292
.map((season) => season.seasonNumber)
9393
.filter((season) => season > 0);
9494
}
95-
console.log(seasons);
9695
chrome.runtime.sendMessage({
9796
contentScriptQuery: 'requestMedia',
9897
tmdbId: tmdbId,
9998
mediaType: mediaType,
10099
seasons: seasons
101100
}, json => {
102-
console.log(json);
103101
initializeContainer();
104102
if (!json.hasOwnProperty('media')) {
105103
insertStatusButton('Error');

0 commit comments

Comments
 (0)