Add .mjs support for extensions
This commit is contained in:
parent
0cc0ee1bcb
commit
b90cad7f31
1 changed files with 3 additions and 0 deletions
|
@ -1754,6 +1754,9 @@ def reload_javascript():
|
|||
for script in modules.scripts.list_scripts("javascript", ".js"):
|
||||
head += f'<script type="text/javascript" src="file={script.path}?{os.path.getmtime(script.path)}"></script>\n'
|
||||
|
||||
for script in modules.scripts.list_scripts("javascript", ".mjs"):
|
||||
head += f'<script type="module" src="file={script.path}?{os.path.getmtime(script.path)}"></script>\n'
|
||||
|
||||
head += f'<script type="text/javascript">{inline}</script>\n'
|
||||
|
||||
def template_response(*args, **kwargs):
|
||||
|
|
Loading…
Reference in a new issue