From bac96457a5b53a3f5fa5857e108e9e32515bb02b Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Mon, 21 Feb 2022 14:03:11 +0100 Subject: improve some of the fixes and add sample URLs for testing --- src/odysee.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/odysee.js') diff --git a/src/odysee.js b/src/odysee.js index cd1c49c..e0c6609 100644 --- a/src/odysee.js +++ b/src/odysee.js @@ -287,7 +287,7 @@ function show_search_entries(new_results_div, response) description_div.textContent = result.value.description; result_a.setAttribute("style", "display: block; width: 100%; text-decoration: none; color: #333; margin: 8px; border-style: solid; border-width: 3px 0 0 0; border-color: #7aa;"); - result_a.href = `https://odysee.com${channel_specifier}/${video_name}:${video_id}`; + result_a.href = `https://odysee.com/${channel_specifier}/${video_name}:${video_id}`; if (result.value.thumbnail.url) result_a.appendChild(thumbnail); @@ -325,7 +325,7 @@ function search_ajax_error(url) function get_detailed_search_entries(new_results_div, response) { - /* TODO: Simplify JSON handling using sanitize_JSON.js from Hachette. */ + /* TODO: Simplify JSON handling using JSON schemas. */ try { var response_data = JSON.parse(response); if (!Array.isArray(response_data)) -- cgit v1.2.3