I’ve seen this problem mentioned before, but a solution is notoriously absent.
When my game is loaded through an iframe (such as itch.io or kongregate) it can’t access the playerprefs at all. I managed to get around the problem in Chrome by using the html code to save to localStorage, but on Firefox this gives me a “SecurityError: The operation is insecure” error.
Any ideas? Everything works perfectly fine when not loading the game through an iframe.
Nope, defnitely having this issue still even in 5.2.1p3 which the patch notes mention WebGL: Workaround for IndexedDB not available in Firefox when running in iframe.