17 lines
409 B
JavaScript
17 lines
409 B
JavaScript
import bowser from 'bowser';
|
|
|
|
/**
|
|
* Helper function to determine if the browser is supported.
|
|
* @returns {boolean} False if the platform is definitely not supported.
|
|
*/
|
|
export default function () {
|
|
if (bowser.msie ||
|
|
bowser.vivaldi ||
|
|
bowser.opera ||
|
|
bowser.silk) {
|
|
return false;
|
|
}
|
|
// @todo Should also test for versions of supported browsers
|
|
return true;
|
|
}
|