removed hard coded api key
This commit is contained in:
@@ -18,7 +18,7 @@ export default class MovieGenre extends Component {
|
||||
|
||||
render() {
|
||||
let netflixUrl = false;
|
||||
if (this.props.url === "/discover/tv?api_key=224ce27b38a3805ecf6f6c36eb3ba9d0&with_networks=213") {
|
||||
if (this.props.url === `/discover/tv?api_key=${process.env.API_KEY}&with_networks=213`) {
|
||||
netflixUrl = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ export default function MovieGenreImage(props) {
|
||||
|
||||
if (
|
||||
props.url ===
|
||||
'https://api.themoviedb.org/3/discover/tv?api_key=224ce27b38a3805ecf6f6c36eb3ba9d0&with_networks=213'
|
||||
`https://api.themoviedb.org/3/discover/tv?api_key=${process.env.API_KEY}&with_networks=213`
|
||||
) {
|
||||
netflixUrl = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user