balupton/history.js — Issue #116: Uncaught Error: QUOTA_EXCEEDED_ERR: DOM Exception 22
Author: zipz
Created: 2011-10-19 17:23:14+00:00
State: open

I was playing around with the mootools.history.js quite a long time. I also save quite a lot content in the state-variable. The problem is that the "Uncaught Error: QUOTA_EXCEEDED_ERR: DOM Exception 22" is counting up all the time. I have already 260 print outs in the console.

I quess that a try catch statement can be needed for the sessionStorage?

try {
sessionStorage.setItem(“name”, “Hello World!”);
} catch (e) {
if (e == QUOTA_EXCEEDED_ERR) {
//data quota exceed so throw an error
//do some garbage collecting
}
}