-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
localstorage was cleared, when i restart my sketch #78
Comments
Same. What I did to "solve" it, is persist it to the sketch plugin settings. In the sketch "backend" code I used:
And in the frontend I used a pluginCall to pass it to the backend on change. Not the greatest solution, but maybe it helps you! |
Yeah I don’t think there is another solution. That’s also what I’m doing in the Sketch DevTools. What we could do perhaps is automate this by monkey-patching localStorage automatically so that when you can |
That would be nice! Maybe with a special prefix so it’ll never conflict. |
Yes exactly. Do you want to have a go at it? There is already an example of monkey patching |
Sure, I can probably have a go at it this weekend or next week👌 |
Perfect! Give me a shout if you need something |
thanks, although it can't solve all the problems, but helpful. |
Any help would be appreciated! Thanks
The text was updated successfully, but these errors were encountered: