prevent browser back in history

This commit is contained in:
Olivier Gagnon 2021-11-24 16:15:19 -05:00
parent 9c85df1f5d
commit 31edf92092
4 changed files with 194 additions and 33 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 31 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 109 KiB

@ -13,7 +13,12 @@
<meta name="msapplication-TileColor" content="#000000"/>
<meta name="msapplication-config" content="dist/browserconfig.xml"/>
<meta name="theme-color" content="#ffffff"/>
<script>
// Give a warning if you go back in browser history.
window.onbeforeunload = function () {
return "Your work will be lost.";
};
</script>
<!-- Google Analytics -->
<script>
(function (i, s, o, g, r, a, m) {
@ -58,5 +63,4 @@
<body>
<div id="root"/>
<script type="text/javascript" src="dist/vendor.bundle.js"></script><script type="text/javascript" src="main.bundle.js"></script></body>
<!-- http://plaza.dsolver.ca/m/hydroflame4418 -->
</html>

@ -13,7 +13,12 @@
<meta name="msapplication-TileColor" content="#000000" />
<meta name="msapplication-config" content="dist/browserconfig.xml" />
<meta name="theme-color" content="#ffffff" />
<script>
// Give a warning if you go back in browser history.
window.onbeforeunload = function () {
return "Your work will be lost.";
};
</script>
<!-- Google Analytics -->
<script>
(function (i, s, o, g, r, a, m) {
@ -58,5 +63,4 @@
<body>
<div id="root" />
</body>
<!-- http://plaza.dsolver.ca/m/hydroflame4418 -->
</html>