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:
@@ -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
@@ -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)
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user