Hello. Voat-fugee here looking for a new home.
I think I could get used to this site, but there is one problem that the Javascript is not compatible with older browsers.
For various reasons not everyone is able to upgrade to the latest and greatest. I'm stuck with an older system :(
On Voat there are no problems as it is running compatible JS, but here the code is using async/await, which requires a more modern browser engine. As a result the site crashes with the following error:
Uncaught SyntaxError: Unexpected token function
Without having to redo the code a simple solution would be to just transpile the offending file (main.js) with Babel:
https://dev.to/btandayamo/a-guide-to-through-async-await-with-babel-and-webpack-mh5
Babel will then generate compatible code which works out of the box on older browser too.
Any chance to fix this issue? Pretty please...
Hello. Voat-fugee here looking for a new home.
I think I could get used to this site, but there is one problem that the Javascript is not compatible with older browsers.
For various reasons not everyone is able to upgrade to the latest and greatest. I'm stuck with an older system :(
On Voat there are no problems as it is running compatible JS, but here the code is using async/await, which requires a more modern browser engine. As a result the site crashes with the following error:
`Uncaught SyntaxError: Unexpected token function`
Without having to redo the code a simple solution would be to just transpile the offending file (main.js) with Babel:
https://dev.to/btandayamo/a-guide-to-through-async-await-with-babel-and-webpack-mh5
Babel will then generate compatible code which works out of the box on older browser too.
Any chance to fix this issue? Pretty please...
(post is archived)