Skip to content

[BUG] Scripts with type="module" are ignored #226

@Rosuav

Description

@Rosuav

Platform

Operating system and version:
OBS Studio version: 25.0.2+ (built from git) on Debian Linux

Expected Behavior

JavaScript in <script type=module> blocks should be executed.

Current Behavior

JavaScript in such blocks is ignored.

Steps to Reproduce

  1. Create a browser source referencing https://rosuav.github.io/Ratigan/cutdown
  2. The JS should create a list item (saying "visible"). This can be confirmed in a regular browser.

Additional information

This script file is not using any module-specific features (eg imports), and should be executed just the same as if the type were omitted.

The issue does not seem to occur on Windows, but I have not confirmed this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions