Skip to content

Expecting hasShadowRoot from global scope #22149

@Ontopic

Description

@Ontopic

Think hasShadowRoot was added with a debug flag for if (CHROME && hasShadowRoot) (grepping or acking that should bring you to the culprit). This breaks Chromium builds in Chrome and Electron.

For anyone riding the 18 wave;

// somehwere above your entry / bundle
globalThis.hasShadowRoot = () => true

// preload script electron
contextBridge.exposeInMainWorld('hasShadowRoot', () => true)

To be clear; those are just temporary quick fixes to keep 18 juices flowing. Not recommended for actual use.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions