wodahSShadow wrote:My copy uses "typeof sessionStorage", got it directly from the dropbox link.
I'm running Firefox 36.0.4, the error first happens when loading difficulty.htm and happens every time I try to select a difficulty. It also causes the dynamics-texts to stay visible in the buttons. Changing to typeof(Storage) fixes both problems. There is no error in Chrome since it's a Firefox security feature.
Yep, I confused my sessionStorage and Storage. We're using sessionStorage. Sorry for that.
The symptoms your describing seem to only come into effect if cookie security settings in Firefox are set higher than normal, such as "ask every time." There's some debate in security circles whether or not the Firefox implementation is actually a bug, or a feature, Technically it's a feature I guess, since it's by design in the current version but under review by the Mozilla staff to be changed in a later version.
Not really the place to get into a debate about Firefox, or any other browser, implementations of anything though.
.
We'll look into seeing if typeof(storage) is a good solution and if so, incorporate it into the next version. Thanks for the tip!
In the meantime, lowering cookie settings to default may be a workaround if you don't want to use a different browser. The reason that you're seeing the error at the difficulty screen is because that's the first time the game tries to save a variable, in this case recording your difficulty level. All variables are stored first into localstorage if supported, with cookies as a fallback.
Wolfschadowe