9
0
mirror of https://github.com/donlon/cloudflare-error-page.git synced 2025-12-19 14:59:28 +00:00

miscellaneous updates

This commit is contained in:
Anthony Donlon
2025-11-22 00:22:45 +08:00
parent 5c18dfb930
commit 68b1d35ac4
3 changed files with 2 additions and 5 deletions

View File

@@ -27,7 +27,7 @@
<span class="code-label">Error code {{ error_code }}</span> <span class="code-label">Error code {{ error_code }}</span>
</h1> </h1>
{% set more_info = params.more_information or {} %} {% set more_info = params.more_information or {} %}
{% if not more_info.hidden or false %} {% if not more_info.hidden or false %}{# default: shown #}
<div> <div>
Visit <a href="{{more_info.link or 'https://www.cloudflare.com/'}}" target="_blank" rel="noopener noreferrer">{{more_info.text or 'cloudflare.com'}}</a> for more information. Visit <a href="{{more_info.link or 'https://www.cloudflare.com/'}}" target="_blank" rel="noopener noreferrer">{{more_info.text or 'cloudflare.com'}}</a> for more information.
</div> </div>

View File

@@ -139,9 +139,6 @@
"what_can_i_do": "Visit the site before it crashes someday." "what_can_i_do": "Visit the site before it crashes someday."
}, },
}; };
if (window.location.search == '') {
window.history.pushState('sss', '', '?s');
}
function extractUrlParam(str, key) { function extractUrlParam(str, key) {
const urlParams = new URLSearchParams(str) const urlParams = new URLSearchParams(str)

View File

@@ -7,7 +7,7 @@
"cloudflare_status": { "cloudflare_status": {
"status": "error", "status": "error",
"location": "Everywhere", "location": "Everywhere",
"status_text": "Not Working" "status_text": "Error"
}, },
"host_status": { "host_status": {
"status": "error", "status": "error",