Use proper backticks for generating legacy script tags

This commit is contained in:
Pierre Ossman 2019-11-11 10:01:43 +01:00
parent a6304f91d0
commit c6e37040de
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ function transform_html(legacy_scripts, only_legacy) {
// Otherwise include both modules and legacy fallbacks
new_script += ' <script type="module" crossorigin="anonymous" src="app/ui.js"></script>\n';
for (let i = 0;i < legacy_scripts.length;i++) {
new_script += ' <script nomodule src="${legacy_scripts[i]}"></script>\n';
new_script += ` <script nomodule src="${legacy_scripts[i]}"></script>\n`;
}
}