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

Remove static functions #1

Open
oczki opened this issue Mar 6, 2021 · 1 comment
Open

Remove static functions #1

oczki opened this issue Mar 6, 2021 · 1 comment

Comments

@oczki
Copy link
Owner

oczki commented Mar 6, 2021

Safari doesn't support static in JS, so the userscript will not work there.

@oczki
Copy link
Owner Author

oczki commented Mar 6, 2021

Old

class Foo {
  static flag = 10;
  static bar(x, y) {
  }
}

New

let Foo = new function() {
  this.flag = 10;
  this.bar = (x, y) => {
  }
}

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