Files
scratch-gui/src/lib/supported-browser.js
T
2018-05-27 08:51:33 +09:00

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;
}