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

pkg squarelink incompatible in lower version browsers #439

Closed
geraldchen890806 opened this issue Sep 30, 2020 · 4 comments
Closed

pkg squarelink incompatible in lower version browsers #439

geraldchen890806 opened this issue Sep 30, 2020 · 4 comments

Comments

@geraldchen890806
Copy link

squarelink.min.js use ...

maxBlockRef:function(...e){const` t=r(e);return t[t.length-1]}
@lnbc1QWFyb24
Copy link
Collaborator

@geraldchen890806 Are you referring to the const keyword here? You could use babel to transpile down to es5 compatible code.

@geraldchen890806
Copy link
Author

@aaronbarnardsound the code is in squarelink.min.js which is in onboard dependencies

"squarelink": "^1.1.4",

@lnbc1QWFyb24
Copy link
Collaborator

@geraldchen890806 Yep, you can use babel to transpile the Squarelink module in your node_modules folder to be es5 compatible if you need to target that js environment. Check out this thread for more info on targeting node modules with babel: babel/babel-loader#171

@lnbc1QWFyb24
Copy link
Collaborator

Closing due to Squarelink being removed from Onboard

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

2 participants