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

inline css/svg files to avoid the use of external resources

This commit is contained in:
Anthony Donlon
2025-12-09 23:56:28 +08:00
parent 6a066b5ff8
commit 38d19fa12d
18 changed files with 324 additions and 36 deletions

View File

@@ -299,10 +299,9 @@
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds} UTC`;
}
function renderEjs(params, use_cdn = true) {
function renderEjs(params) {
return template({
params: params,
resources_use_cdn: use_cdn
})
}

File diff suppressed because one or more lines are too long

View File

@@ -53,4 +53,4 @@ def index(name: str):
fill_cf_template_params(params)
# Render the error page
return render_cf_error_page(params, use_cdn=True)
return render_cf_error_page(params)

View File

@@ -125,5 +125,4 @@ def get(name: str):
return template.render(base=cf_template,
params=params,
url=request.url,
description='Cloudflare error page',
resources_use_cdn=True)
description='Cloudflare error page')