Skip to content

script type="module" for async functions #15

@Mindless73

Description

@Mindless73

Version: 0.5.4

When using <script type="module"> in widget.html, the async functions work and the preview displays correctly. When copying the same code (without the script tag) to script.js, it shows the error "Uncaught SyntaxError: await is only valid in async functions and the top level bodies of modules".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions