Update App.js
This commit is contained in:
@@ -20,6 +20,12 @@ let textInput
|
|||||||
export default function App() {
|
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")
|
||||||
clearScreen("rgb(255, 255, 255)")
|
clearScreen("rgb(255, 255, 255)")
|
||||||
@@ -548,6 +554,7 @@ export default function App() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user