From fa14fae8a46f60f4ae6e6331f463cc737bd0e1a7 Mon Sep 17 00:00:00 2001 From: avadhesh18 Date: Tue, 9 Jan 2024 15:34:03 +0530 Subject: [PATCH] added information for failed loads --- html/index.html | 3 +++ public/comments.html | 1 - public/index.html | 4 +++- public/search.html | 1 - public/subreddit.html | 1 - public/user.html | 1 - public/userc.html | 1 - run.php | 3 +-- 8 files changed, 7 insertions(+), 8 deletions(-) diff --git a/html/index.html b/html/index.html index 7715ec1..d3e5229 100644 --- a/html/index.html +++ b/html/index.html @@ -73,6 +73,9 @@ document.getElementById('body').innerHTML = fill; runhsl(); }; +req.onerror = function () { +document.getElementById('body').innerHTML = '
Can\'t load content!
There can be multiple reasons for this, your browser\'s aggresive privacy settings may be blocking the one call to reddit.com RDX makes. This happens usually when you use a VPM/Proxy and/or a privacy focused browser like Firefox.
Play around with privacy/tracking options or change your browser. If it still doesn\'t work click the feedback link and send me some info.
'; +}; req.send(null); } diff --git a/public/comments.html b/public/comments.html index e5354b0..381b7ef 100644 --- a/public/comments.html +++ b/public/comments.html @@ -11,7 +11,6 @@ -