diff options
Diffstat (limited to 'bskylink/src/html/linkRedirectContents.ts')
-rw-r--r-- | bskylink/src/html/linkRedirectContents.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/bskylink/src/html/linkRedirectContents.ts b/bskylink/src/html/linkRedirectContents.ts new file mode 100644 index 000000000..f1bcdbb91 --- /dev/null +++ b/bskylink/src/html/linkRedirectContents.ts @@ -0,0 +1,21 @@ +import escapeHTML from 'escape-html' + +export function linkRedirectContents(link: string): string { + return ` + <html> + <head> + <meta http-equiv="refresh" content="0; URL='${escapeHTML(link)}'" /> + <meta + http-equiv="Cache-Control" + content="no-store, no-cache, must-revalidate, max-age=0" /> + <meta http-equiv="Pragma" content="no-cache" /> + <meta http-equiv="Expires" content="0" /> + <style> + :root { + color-scheme: light dark; + } + </style> + </head> + </html> + ` +} |