Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Local storage not working on itch

A topic by Achifaifa created Feb 06, 2021 Views: 716 Replies: 2
Viewing posts 1 to 3
(+5)

I uploaded a game yesterday (https://achifaifa.itch.io/laserworks), and I just realised the storage option I was using (LocalStorage directly with JS) doesn't work, since that's treated as the local storage of <randomstring>.ssl.hwcdn.net rather than <user>.itch.io. You can see this if you open the developer console and look at the storage>local storage tab.

It worked perfectly when I had the game on a github page, but I guess this is because the script gets served from a CDN, so the browser creates a local storage for that CDN instead of itch.

Is there a workaround for this or another storage option I could use?

(+1)

Same problem for my game, it worked in the past...something changed on itch.io...

Same issue 2 years later! Any fix?