From 437b6d1efe47bab237ff711d042358b299e42c61 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sun, 3 Jan 2021 18:38:56 +0100 Subject: [PATCH] Improve script tags --- views/profile.pug | 4 ++-- views/template.base.pug | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/views/profile.pug b/views/profile.pug index 4973923..d714f7e 100644 --- a/views/profile.pug +++ b/views/profile.pug @@ -23,6 +23,6 @@ main.container.container--profile a(href="https://codeberg.org/keyoxide/web/releases")= settings.keyoxide_version | ). -script(src='/static/openpgp.min.js') -script(src='/static/doip.js') +script(type='application/javascript' src='/static/openpgp.min.js' charset='utf-8') +script(type='application/javascript' src='/static/doip.js' charset='utf-8') script(type='application/javascript' src='/static/scripts.js' charset='utf-8') diff --git a/views/template.base.pug b/views/template.base.pug index 24b8f48..80fcebe 100644 --- a/views/template.base.pug +++ b/views/template.base.pug @@ -36,6 +36,6 @@ main.container a(href='https://fosstodon.org/@keyoxide') Mastodon p © 2020 Keyoxide contributors -script(src='/static/openpgp.min.js') -script(src='/static/qrcode.min.js') +script(type='application/javascript' src='/static/openpgp.min.js' charset='utf-8') +script(type='application/javascript' src='/static/qrcode.min.js' charset='utf-8') script(type='application/javascript' src='/static/scripts.js' charset='utf-8')