diff --git a/src/assets/javascripts/helpers/reddit.js b/src/assets/javascripts/helpers/reddit.js index 26350ef7..d04588e4 100644 --- a/src/assets/javascripts/helpers/reddit.js +++ b/src/assets/javascripts/helpers/reddit.js @@ -201,6 +201,8 @@ function redirect(url, type) { if (type !== "main_frame" || url.pathname.match(bypassPaths)) return null; + if (frontend == 'old') return `${redirects.desktop}${url.pathname}${url.search}`; + let libredditInstancesList; let tedditInstancesList; if (protocol == 'normal') { diff --git a/src/instances/get_instances.py b/src/instances/get_instances.py index e3e56681..971e3b38 100644 --- a/src/instances/get_instances.py +++ b/src/instances/get_instances.py @@ -56,6 +56,7 @@ def get_host_name(link): # Bibliogram r = requests.get('https://bibliogram.art/api/instances') +print(r.text) rJson = json.loads(r.text) bibliogramList = {} bibliogramList['normal'] = [] diff --git a/src/pages/options/reddit/reddit.html b/src/pages/options/reddit/reddit.html index fce58192..7b232688 100644 --- a/src/pages/options/reddit/reddit.html +++ b/src/pages/options/reddit/reddit.html @@ -124,6 +124,7 @@

Frontend

diff --git a/src/pages/options/reddit/reddit.js b/src/pages/options/reddit/reddit.js index ac629e44..a47576d4 100644 --- a/src/pages/options/reddit/reddit.js +++ b/src/pages/options/reddit/reddit.js @@ -18,6 +18,10 @@ function changeFrontendsSettings(frontend) { libredditDivElement.style.display = 'none'; tedditDivElement.style.display = 'block'; } + else if (frontend == 'old') { + libredditDivElement.style.display = 'none'; + tedditDivElement.style.display = 'none'; + } } let redditFrontendElement = document.getElementById("reddit-frontend"); redditFrontendElement.addEventListener("change",