chinchang / web-maker

A blazing fast & offline frontend playground
https://webmaker.app
MIT License
2.54k stars 314 forks source link

localStorage is no longer accessible to my Library items #558

Closed nhogle closed 2 months ago

nhogle commented 2 months ago

Meta info

I have many "pens" (Library items) that make use of localStorage to store and persist data between runs. After the latest updates, I get errors when running my items that use localStorage: "Error: Failed to read the 'localStorage' property from 'Window': The document is sandboxed and lacks the 'allow-same-origin' flag.

Perhaps this a CORS issue?

Minimal working example: In the JS pane, put:

console.log("localStorage keys:", Object.keys(localStorage));
chinchang commented 2 months ago

Fixed now ✅ Really appreciate you reporting all the issues, Nick! 🙇🏼‍♂️

nhogle commented 2 months ago

@chinchang : I'm so impressed by your responsiveness! Thanks for the quick turn-around on fixing these bugs, it's very much appreciated! :) I'll keep the bug reports coming. Cheers!

chinchang commented 2 months ago

If not much to ask, please do leave a review here -> https://chromewebstore.google.com/detail/web-maker/lkfkkhfhhdkiemehlpkgjeojomhpccnh/reviews 😁 Thanks!