Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getBrowserIssues() {
const view = viewHelper.getView(this.proxyManager, DEFAULT_VIEW_TYPE);
if (view) {
const glRW = view.getOpenglRenderWindow();
const allInfo = glRW.getGLInformations();
const { UNMASKED_RENDERER, UNMASKED_VENDOR, WEBGL_VERSION } = allInfo;
if (WEBGL_VERSION.value < 2) {
this.$set(this.issues, 'webglVersion', WEBGL_VERSION.value);
}
const strToTest = `${UNMASKED_VENDOR.value} / ${UNMASKED_RENDERER.value}`.toLowerCase();
if (strToTest.indexOf('intel') !== -1) {
this.$set(this.issues, 'integratedGPU', UNMASKED_RENDERER.value);
}
// if (strToTest.indexOf('angle') !== -1) {
// this.$set(this.issues, 'angle', true);
// }
.map((t) => viewHelper.getView(rootState.proxyManager, t)),
},