fix mime type for admin.js

This commit is contained in:
Harvey Tindall 2020-07-05 21:39:58 +01:00
parent fa0527c6a7
commit a2a2abc7f2
4 changed files with 9 additions and 3 deletions

2
.gitignore vendored
View File

@ -18,3 +18,5 @@ old/
requirements.txt requirements.txt
package-lock.json package-lock.json
video/ video/
scss/bs5/*.css*
scss/bs4/*.css*

View File

@ -1,5 +1,5 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
__version__ = "0.3.0" __version__ = "0.3.1"
import secrets import secrets
import configparser import configparser

View File

@ -39,7 +39,11 @@ def static_proxy(path):
bsVersion = 5 bsVersion = 5
else: else:
bsVersion = 4 bsVersion = 4
return render_template("admin.js", bsVersion=bsVersion) return (
render_template("admin.js", bsVersion=bsVersion),
200,
{"Content-Type": "text/javascript"},
)
return app.send_static_file(path) return app.send_static_file(path)
return ( return (
render_template( render_template(

View File

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "jellyfin-accounts" name = "jellyfin-accounts"
version = "0.3.0" version = "0.3.1"
readme = "README.md" readme = "README.md"
description = "A simple account management system for Jellyfin" description = "A simple account management system for Jellyfin"
authors = ["Harvey Tindall <harveyltindall@gmail.com>"] authors = ["Harvey Tindall <harveyltindall@gmail.com>"]