diff options
Diffstat (limited to 'app/assets/javascripts/error_tracking/store/list')
-rw-r--r-- | app/assets/javascripts/error_tracking/store/list/mutations.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/error_tracking/store/list/mutations.js b/app/assets/javascripts/error_tracking/store/list/mutations.js index d92a64947ad..523861363d7 100644 --- a/app/assets/javascripts/error_tracking/store/list/mutations.js +++ b/app/assets/javascripts/error_tracking/store/list/mutations.js @@ -22,7 +22,7 @@ export default { // only keep the last 5 state.recentSearches = recentSearches.slice(0, 5); - if (AccessorUtils.isLocalStorageAccessSafe()) { + if (AccessorUtils.canUseLocalStorage()) { localStorage.setItem( `recent-searches${state.indexPath}`, JSON.stringify(state.recentSearches), @@ -31,7 +31,7 @@ export default { }, [types.CLEAR_RECENT_SEARCHES](state) { state.recentSearches = []; - if (AccessorUtils.isLocalStorageAccessSafe()) { + if (AccessorUtils.canUseLocalStorage()) { localStorage.removeItem(`recent-searches${state.indexPath}`); } }, |