Fix game archive upload in web ui
bundle.js is built by webpack as an ES module (output.library.type:
'module'), ending with named exports such as:
export { Be as ChunkUploader, s as InfiniteScroll, ... }
All three inclusion sites (App.razor, _Layout.cshtml,
ScriptLoader.razor) loaded it via a plain <script> tag, which is for
classic scripts only and does not support the 'export' keyword.
Edge throws a visible SyntaxError and uploading does not work.
Fixed by adding type="module" to the bundle.js script tag in all three
locations.
This commit is contained in:
parent
939e0b3313
commit
a7bd41ff9d
3 changed files with 3 additions and 3 deletions
|
|
@ -32,7 +32,7 @@
|
|||
<script src="_content/AntDesign.Charts/ant-design-charts-blazor.js"></script>
|
||||
<script src="_framework/blazor.web.js"></script>
|
||||
|
||||
<script src="_content/LANCommander.UI/bundle.js"></script>
|
||||
<script type="module" src="_content/LANCommander.UI/bundle.js"></script>
|
||||
<script src="_content/PSC.Blazor.Components.MarkdownEditor/js/easymde.min.js"></script>
|
||||
<script src="_content/PSC.Blazor.Components.MarkdownEditor/js/markdownEditor.js"></script>
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
<script src="~/_content/AntDesign.Charts/ant-design-charts-blazor.js"></script>
|
||||
<script src="~/_framework/blazor.server.js"></script>
|
||||
|
||||
<script src="~/_content/LANCommander.UI/bundle.js"></script>
|
||||
<script type="module" src="~/_content/LANCommander.UI/bundle.js"></script>
|
||||
<script src="~/_content/PSC.Blazor.Components.MarkdownEditor/js/easymde.min.js"></script>
|
||||
<script src="~/_content/PSC.Blazor.Components.MarkdownEditor/js/markdownEditor.js"></script>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
@namespace LANCommander.UI.Components
|
||||
|
||||
<script src="/_content/LANCommander.UI/bundle.js"></script>
|
||||
<script type="module" src="/_content/LANCommander.UI/bundle.js"></script>
|
||||
<script src="/_content/PSC.Blazor.Components.MarkdownEditor/js/easymde.min.js"></script>
|
||||
<script src="/_content/PSD.Blazor.Components.MarkdownEditor/js/markdownEditor.js"></script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue