We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43abcc4 commit 32e7a13Copy full SHA for 32e7a13
web_src/js/components/RepoActionView.vue
@@ -49,8 +49,11 @@ type LocaleStorageOptions = {
49
};
50
51
function getLocaleStorageOptions(): LocaleStorageOptions {
52
- const optsJson = localStorage.getItem('actions-view-options');
53
- if (optsJson) return JSON.parse(optsJson);
+ try {
+ const optsJson = localStorage.getItem('actions-view-options');
54
+ if (optsJson) return JSON.parse(optsJson);
55
+ } catch {}
56
+ // if no options in localStorage, or failed to parse, return default options
57
return {autoScroll: true, expandRunning: false};
58
}
59
0 commit comments