On Safari 14.1.2 (MacOS 10.14.6) I get crashes when it tries to set or get the game clock immediately after doing the tutorial fight or skipping the tutorial.
I did not have this problem with a modern Google Chrome.
Manual checking on the Safari Console shows "window.hours" returns zero, but a bare "hours" throws the exception.
Thus the problem is the execution context and/or strict mode on Safari.
// Edit:
Confirmed that if you put this in the Safari Console:
JavaScript:
'use strict';
var lost = {
loc : "Island"
}
Object.defineProperty(window, "theloc", {
get : function () {
console.log("get", this);
return this.lost.loc;
},
set : function (location) {
console.log("set", this);
this.lost.loc = location;
}
});
window.theloc and theloc act differently because this is not defined in the latter calls to the property methods.
But in Google Chrome (96.0.4664.55) both work.
Based on an example from
https://gist.github.com/udnp/c5e8896d7532bd88aa2932fd780c451d
--- Examples ---
Skip Tutorial:
Message: undefined is not an object (evaluating 'this.game')
Stack:
set@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:8843166
c_@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:10321589
doClick@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:10197659
s@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:6043282
Hitting Next after meeting Zeke after deciding to keep Celise:
Message:
undefined is not an object (evaluating 'this.game')
Stack:
get@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:8843243
t@https://www.fenoxo.com/play/TiTS/backer/content_tavros.248bfdcc.js:1:7490690
value@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:5117115
value@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:9895481
value@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:9892015
Ha@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:360015
yl@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:386861
vl@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:386786
ul@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:383816
ul@[native code]
Ko@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:335402
Xo@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:335337
nl@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:380601
Vl@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:401834
Xl@https://www.fenoxo.com/play/TiTS/backer/vendors.aa4303ec.js:1:402706
s@https://www.fenoxo.com/play/TiTS/backer/main.f55714fe.js:1:6043282