Created
January 2, 2021 15:20
-
-
Save Jagathishrex/2cf2b8f39a390e054f06c8bed7156dc7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const canvas = document.querySelector('#canvas'); | |
canvas.getContext('webgl'); | |
try { | |
let offscreen = canvas.transferControlToOffscreen(); | |
}catch(e){ | |
console.log(e); | |
} | |
//DOMException: Failed to execute 'transferControlToOffscreen' on 'HTMLCanvasElement': | |
// Cannot transfer control from a canvas for more than one time. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment