fix: Inject ssl based on host only

This commit is contained in:
2024-03-27 20:37:02 +11:00
parent 1b6536d8ae
commit dcc28483e3
2 changed files with 2 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ def site(data, injectSSL = False):
ssl = ''
if injectSSL:
ssl = '<script src="https://nathan.woodburn/https.js" async=""></script>'
ssl = f'<script src="https://{injectSSL}/https.js" async=""></script>'
page = "page.html"
if data['image'] == "":
page = "page_no_image.html"