summaryrefslogtreecommitdiff
path: root/qutebrowser/html
diff options
context:
space:
mode:
authorpsvenk <45520974+psvenk@users.noreply.github.com>2021-02-23 17:03:39 -0500
committerpsvenk <45520974+psvenk@users.noreply.github.com>2021-02-23 17:09:03 -0500
commit985c2dea6560ff3d69c58a77256e624430296ae0 (patch)
tree3c2af77997407cfd4e2b25fdb339ef6fa4c5c755 /qutebrowser/html
parentee9f3fc7cbfd976b3d9ca467322ebfdf7ed7e6a7 (diff)
downloadqutebrowser-985c2dea6560ff3d69c58a77256e624430296ae0.tar.gz
qutebrowser-985c2dea6560ff3d69c58a77256e624430296ae0.zip
Use link instead of button+JS in error page
Instead of using JavaScript for the "Try again" link on the error page, use a regular link which works even when content.javascript.enabled is set to false. Closes #6204
Diffstat (limited to 'qutebrowser/html')
-rw-r--r--qutebrowser/html/error.html12
1 files changed, 1 insertions, 11 deletions
diff --git a/qutebrowser/html/error.html b/qutebrowser/html/error.html
index 6bc5bac0d..975ae3aee 100644
--- a/qutebrowser/html/error.html
+++ b/qutebrowser/html/error.html
@@ -57,14 +57,6 @@ li {
}
{% endblock %}
-{% block script %}
-{{ super() }}
-function tryagain()
-{
- location.href = "{{ url|js_string_escape|safe }}";
-}
-{% endblock %}
-
{% block content %}
<div id="error-container">
<table>
@@ -77,9 +69,7 @@ function tryagain()
Error while opening {{ url | default('page', true) }}<br>
<p id="error-message-text" style="color: #a31a1a;">{{ error }}</p><br><br>
- <form name="bl">
- <input type="button" value="Try again" onclick="javascript:tryagain()" />
- </form>
+ <a href="{{ url }}">Try again</a>
</td>
</tr>
</table>