Update App.js

This commit is contained in:
brausjonas
2023-07-07 00:40:06 +02:00
parent c9b725f74d
commit 56d7762801
+7
View File
@@ -20,6 +20,12 @@ let textInput
export default function App() {
useLayoutEffect(() => {
window.addEventListener("beforeunload", e => {
e.preventDefault()
e.returnValue = ""
})
canvas = document.getElementById("canvas")
context = canvas.getContext("2d")
clearScreen("rgb(255, 255, 255)")
@@ -548,6 +554,7 @@ export default function App() {
</div>
</div>
</div>
</div>
);
}