Skip to content

Commit

Permalink
Fixed movie rating bugs & enhanced app efficiency
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangsonww committed Jan 6, 2024
1 parent 9609911 commit 7d6eab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/movie-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ function getRatingDetails(rating) {

async function fetchMovieRatings(imdbId, tmdbMovieData) {
const omdbApiKey = '2ba8e536';
const omdbUrl = `http://www.omdbapi.com/?i=${imdbId}&apikey=${omdbApiKey}`;
const omdbUrl = `https://www.omdbapi.com/?i=${imdbId}&apikey=${omdbApiKey}`;

try {
const response = await fetch(omdbUrl);
Expand Down

0 comments on commit 7d6eab1

Please sign in to comment.