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

miscellaneous fixes

This commit is contained in:
Anthony Donlon
2025-12-16 20:38:47 +08:00
parent 410968c2f0
commit feab26093c
5 changed files with 10 additions and 8 deletions

View File

@@ -53,7 +53,7 @@ const PRESETS = {
title: 'Catastrophic infrastructure failure',
error_code: '500',
more_information: {
for: 'no information',
for: 'no help at all',
},
browser_status: {
status: 'error',
@@ -136,7 +136,10 @@ function getDefaultPresetName() {
const key = 'from';
let name = extractUrlParam(window.location.search, key);
if (!name) {
name = extractUrlParam(window.location.hash.substr(1), key);
name = extractUrlParam(window.location.hash.substring(1), key);
}
if (name) {
name = name.replace(/[^\w\d]/g, '')
}
return name;
}