Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
save
  • Loading branch information
nkreeger committed Oct 17, 2019
commit bd59bb7c4c76816f02a1a877fe208430e522e156
3 changes: 0 additions & 3 deletions tfjs-core/src/backends/webgl/canvas_util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ export function browserContextFactory(webGLVersion: number):
}
const canvas = createCanvas(webGLVersion);

canvas.addEventListener('webglcontextlost', (ev: Event) => {
ev.preventDefault();
}, false);
if (webGLVersion === 1) {
return (canvas.getContext('webgl', WEBGL_ATTRIBUTES) ||
canvas.getContext('experimental-webgl', WEBGL_ATTRIBUTES)) as
Expand Down