@dualbox/editor 1.0.56 → 1.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/html/editor.html
CHANGED
|
@@ -64,6 +64,10 @@
|
|
|
64
64
|
THREE = {}; // for debug
|
|
65
65
|
</script>
|
|
66
66
|
<script>
|
|
67
|
+
window.onbeforeunload = function() {
|
|
68
|
+
return "Unsaved changes will be lost, are you sure you want to leave the editor?";
|
|
69
|
+
};
|
|
70
|
+
|
|
67
71
|
// Useful for require.js to work
|
|
68
72
|
var sources = {};
|
|
69
73
|
window.DualBoxRessources = {};
|