Ok. In my case this helped and fixed my problem.
I changed all localStorage to window.localStorage
window.localStorage.getItem("probes").split(",");
I adjusted a keypress event I have used so that the actual key is coded both in the e.which and e.keyCode way.
var code = e.keyCode || e.which; (found here)
Maybe someone with the same problem can make use of this.