From 7b44bb368bbf6e8e6124919b95b3371f6e97986b Mon Sep 17 00:00:00 2001 From: Jim Fisher Date: Thu, 24 Sep 2020 18:28:30 +0100 Subject: [PATCH 1/2] Log error caught when creating WebGL context --- tfjs-backend-webgl/src/webgl_util.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tfjs-backend-webgl/src/webgl_util.ts b/tfjs-backend-webgl/src/webgl_util.ts index 90870bfff2b..9f250dc686b 100644 --- a/tfjs-backend-webgl/src/webgl_util.ts +++ b/tfjs-backend-webgl/src/webgl_util.ts @@ -534,6 +534,7 @@ export function isWebGLVersionEnabled(webGLVersion: 1|2) { return true; } } catch (e) { + console.log("Error when getting WebGL context: ", e); return false; } return false; From 9beb3068f1c3a88eb9fd7af584636996a07d2313 Mon Sep 17 00:00:00 2001 From: Jim Fisher Date: Thu, 24 Sep 2020 19:14:26 +0100 Subject: [PATCH 2/2] Make yarn lint happy --- tfjs-backend-webgl/src/webgl_util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tfjs-backend-webgl/src/webgl_util.ts b/tfjs-backend-webgl/src/webgl_util.ts index 9f250dc686b..5832e8d9205 100644 --- a/tfjs-backend-webgl/src/webgl_util.ts +++ b/tfjs-backend-webgl/src/webgl_util.ts @@ -534,7 +534,7 @@ export function isWebGLVersionEnabled(webGLVersion: 1|2) { return true; } } catch (e) { - console.log("Error when getting WebGL context: ", e); + console.log('Error when getting WebGL context: ', e); return false; } return false;