Update App.js
This commit is contained in:
@@ -24,6 +24,11 @@ export default function App() {
|
|||||||
|
|
||||||
useLayoutEffect(() => {
|
useLayoutEffect(() => {
|
||||||
|
|
||||||
|
window.addEventListener("beforeunload", e => {
|
||||||
|
e.preventDefault()
|
||||||
|
e.returnValue = ""
|
||||||
|
})
|
||||||
|
|
||||||
canvas = document.getElementById("canvas")
|
canvas = document.getElementById("canvas")
|
||||||
context = canvas.getContext("2d")
|
context = canvas.getContext("2d")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user