From 9863553f15bc4a4907dd8f9aeacd8e5dfd0cbc89 Mon Sep 17 00:00:00 2001 From: Jennifer Meade Date: Thu, 2 Jan 2020 13:44:20 -0500 Subject: [PATCH] Replace http endpoints with https Currently, the demo site fails due to mixed content errors. TV Maze API also supports https endpoints. --- js/tv_browser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/tv_browser.js b/js/tv_browser.js index 5191d5f..6171019 100644 --- a/js/tv_browser.js +++ b/js/tv_browser.js @@ -1,6 +1,6 @@ function search (keyword) { let urlEncodedSearchTerm = escape(keyword) - let url = `http://api.tvmaze.com/search/shows?q=${urlEncodedSearchTerm}` + let url = `https://api.tvmaze.com/search/shows?q=${urlEncodedSearchTerm}` $.getJSON(url) .done(function (response) { @@ -31,7 +31,7 @@ function buildOptionsForSelect (searchTerm, responseData) { function show (tvMazeId) { if (!tvMazeId) return - let url = `http://api.tvmaze.com/shows/${tvMazeId}` + let url = `https://api.tvmaze.com/shows/${tvMazeId}` $.getJSON(url).then(function (show) { let detail = `