Update App.js
This commit is contained in:
1 parent
3b8303c4db
commit
882d29e257
1 file changed
+5
@@ -24,6 +24,11 @@ export default function App() {
|
||||
|
||||
useLayoutEffect(() => {
|
||||
|
||||
window.addEventListener("beforeunload", e => {
|
||||
e.preventDefault()
|
||||
e.returnValue = ""
|
||||
})
|
||||
|
||||
canvas = document.getElementById("canvas")
|
||||
context = canvas.getContext("2d")
|
||||
|
||||
|
||||
Reference in new issue
Block a user