File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1306
1306
1307
1307
/*jshint esversion: 11, bitwise: false*/
1308
1308
1309
- var morphicVersion = '2024-January-22 ' ;
1309
+ var morphicVersion = '2024-February-12 ' ;
1310
1310
var modules = { } ; // keep track of additional loaded modules
1311
1311
var useBlurredShadows = true ;
1312
1312
@@ -12469,7 +12469,11 @@ WorldMorph.prototype.initEventListeners = function () {
12469
12469
false
12470
12470
) ;
12471
12471
12472
+ window . cachedOnbeforeunload = window . onbeforeunload ;
12472
12473
window . onbeforeunload = ( evt ) => {
12474
+ if ( window . cachedOnbeforeunload ) {
12475
+ window . cachedOnbeforeunload . call ( null , evt ) ;
12476
+ }
12473
12477
var e = evt || window . event ,
12474
12478
msg = "Are you sure you want to leave?" ;
12475
12479
// For IE and Firefox
You can’t perform that action at this time.
0 commit comments