Skip to content

SplitText Plugin Throws Error "Intl.Segmenter is not a constructor" in Older Browser Versions #626

@ahzvenol

Description

@ahzvenol

Tested Browser Version: Chromium 86.0.4236.0

The issue originates from line 71 in SplitText.ts: _charSegmenter: any = typeof Intl !== "undefined" ? new (Intl as any).Segmenter() : 0
In the tested browser, Intl exists but Intl.Segmenter does not, leading to an exception being thrown.

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