mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
Merge pull request #4500 from awsr/js-import-fix
Fix incorrect variable check
This commit is contained in:
@@ -31,7 +31,7 @@ def html_head():
|
||||
for script in modules.scripts_manager.list_scripts("javascript", ".js"):
|
||||
if script.filename in main or script.filename in skip:
|
||||
continue
|
||||
if '.esm' in js or '.mjs' in js:
|
||||
if '.esm' in script.filename or '.mjs' in script.filename:
|
||||
head += f'<script type="module" src="{webpath(script.path)}"></script>\n'
|
||||
else:
|
||||
head += f'<script type="text/javascript" src="{webpath(script.path)}"></script>\n'
|
||||
|
||||
Reference in New Issue
Block a user