Trying to access the canvas.getContext() [offscreen canvas]


Hi, so yesterday evening it worked, but not anymore today, it seems Snap server changed since last night?

let canvas = document.querySelector('canvas')
let ctx = canvas.getContext('webgl2')

Uncaught DOMException: Failed to
execute 'getContext' on 'HTMLCanvasElement': Cannot get context from a canvas that has transferred its control to offscreen