Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimised feature detection (&&) not handled #508

Open
curiousdannii opened this issue Jan 29, 2022 · 0 comments
Open

Minimised feature detection (&&) not handled #508

curiousdannii opened this issue Jan 29, 2022 · 0 comments

Comments

@curiousdannii
Copy link

curiousdannii commented Jan 29, 2022

This plugin is fine with this code

if (window.ResizeObserver) {
    this.canvasResizeObserver = new ResizeObserver((entries) => this.oncanvasresize(entries));
}

But I run it on the final Terser-minimised output of my project (so that I can ensure that the final output is compatible), and it raises errors for this minimised version.

window.ResizeObserver&&(this.canvasResizeObserver=new ResizeObserver((e=>this.oncanvasresize(e))))

Can the feature detection handler be updated to support &&?

@curiousdannii curiousdannii changed the title Minimised feature detection not handled Minimised feature detection (&&) not handled Jan 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant