Skip to content
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 causes crash in UTILS.findByTargetId() #93

Open
cubap opened this issue May 2, 2022 · 2 comments
Open

localStorage causes crash in UTILS.findByTargetId() #93

cubap opened this issue May 2, 2022 · 2 comments
Labels
bug Something isn't working OSS An OSS developer task

Comments

@cubap
Copy link
Member

cubap commented May 2, 2022

unparsable JSON is uncaught in line 283

@cubap cubap added the bug Something isn't working label May 2, 2022
@cubap
Copy link
Member Author

cubap commented May 2, 2022

An offer:

        const everything = Object.keys(localStorage).map(k => {
            try {
                return JSON.parse(localStorage.getItem(k))
            } catch (err) {
                // probably JSON booch. 
                localStorage.removeItem(k)
            }
        })

@cubap
Copy link
Member Author

cubap commented May 3, 2022

let local_matches = everything.filter(o => o?.target === id) line 315

@thehabes thehabes added the OSS An OSS developer task label Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working OSS An OSS developer task
Projects
None yet
Development

No branches or pull requests

2 participants