Geert
Geert

Reputation: 239

Check browser version using Dart rather than JS?

Is there an "Angular/Dart" way to detect older unsupported browsers and prevent to continue with an elegant message (there are plenty of examples using javascript) rather than continue and show a weird layout with code that doesn't work?

Even the angulardart.org/demo site should do this IMO to stop IE8 (I know, but some enterprise customers still have those old browsers installed - and set as default - for legacy apps) from showing content that doesn't even work.

angulardart.org/demo

Upvotes: 0

Views: 558

Answers (1)

Alexandre Ardhuin
Alexandre Ardhuin

Reputation: 76223

If Dart code cannot be executed the test has to be done in Js. I'm not aware of a library that makes this test.

The test should follow What browsers do you support as JavaScript compilation targets?.

Upvotes: 1

Related Questions