apertium / apertium-html-tools

Web application providing a fully localised interface for text/website/document translation, analysis and generation powered by Apertium.
http://wiki.apertium.org/wiki/Apertium-html-tools
GNU General Public License v3.0
41 stars 89 forks source link

website broken with latest palemoon browser #417

Closed rofl0r closed 3 years ago

rofl0r commented 3 years ago

website is completely blank, js console reveals

SyntaxError: expected expression, got '?'[Learn More]
in index.js: return(e=e?e.displayName||e.name:"")

some web developer to eager to use latest JS features?

mr-martian commented 3 years ago

What I find puzzling is that the error appears to be objecting to the ternary operator, which, according to https://caniuse.com/?search=ternary has been supported by just about everything for nearly a decade.

TinoDidriksen commented 3 years ago

That's not what it's objecting to. The actual error is regarding checked:r??e._wrapperState.initialChecked which uses ?? which is a much newer feature that's only been in browsers since Jan 2020: https://caniuse.com/?search=coalescing

I would agree that's too new. Everything else we do supports ~5 years old distros, so our website should too. IE11 is still out under that criteria, which is the important part.

rofl0r commented 3 years ago

thanks!

edit: site still doesn't work, please notify me when it's regenerated

TinoDidriksen commented 2 years ago

Fixed and live on https://beta.apertium.org/

rofl0r commented 2 years ago

works, ty!