Make entire canvas clickable link on not found/error pages

This commit is contained in:
Seednode 2023-10-01 10:11:13 -05:00
parent 10a3f0927d
commit 64133afe33
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ func newErrorPage(title, body string) string {
htmlBody.WriteString(`<!DOCTYPE html><html lang="en"><head>`) htmlBody.WriteString(`<!DOCTYPE html><html lang="en"><head>`)
htmlBody.WriteString(faviconHtml) htmlBody.WriteString(faviconHtml)
htmlBody.WriteString(`<style>a{display:block;height:100%;width:100%;text-decoration:none;color:inherit;cursor:auto;}</style>`) htmlBody.WriteString(`<style>html,body,a{display:block;height:100%;width:100%;text-decoration:none;color:inherit;cursor:auto;}</style>`)
htmlBody.WriteString(fmt.Sprintf("<title>%s</title></head>", title)) htmlBody.WriteString(fmt.Sprintf("<title>%s</title></head>", title))
htmlBody.WriteString(fmt.Sprintf("<body><a href=\"/\">%s</a></body></html>", body)) htmlBody.WriteString(fmt.Sprintf("<body><a href=\"/\">%s</a></body></html>", body))

View File

@ -12,7 +12,7 @@ import (
) )
const ( const (
ReleaseVersion string = "2.1.0" ReleaseVersion string = "2.1.1"
) )
var ( var (