Access  inside try
Merge pull request #7 from moudy/legacy-config-fix

Access localStorage inside try block