Skip to content
Snippets Groups Projects
Commit bd83728f authored by / /\ / /\/'s avatar / /\ / /\/
Browse files

optimize accessLocalStorage function

parent 11edb0c2
No related branches found
No related tags found
No related merge requests found
export const AccessLocalStorage = accessFn => {
try {
const key = '__some_random_key_you_are_not_going_to_use__';
localStorage.setItem(key, key);
localStorage.removeItem(key);
accessFn();
} catch (e) {
console.log(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment