File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,10 @@ coverage.index_ready = function ($) {
172
172
// Look for a localStorage item containing previous sort settings:
173
173
var sort_list = [ ] ;
174
174
var storage_name = "COVERAGE_INDEX_SORT" ;
175
- var stored_list = localStorage . getItem ( storage_name ) ;
175
+ var stored_list = undefined ;
176
+ try {
177
+ stored_list = localStorage . getItem ( storage_name ) ;
178
+ } catch ( err ) { }
176
179
177
180
if ( stored_list ) {
178
181
sort_list = JSON . parse ( '[[' + stored_list + ']]' ) ;
@@ -222,7 +225,9 @@ coverage.index_ready = function ($) {
222
225
223
226
// Watch for page unload events so we can save the final sort settings:
224
227
$ ( window ) . unload ( function ( ) {
225
- localStorage . setItem ( storage_name , sort_list . toString ( ) )
228
+ try {
229
+ localStorage . setItem ( storage_name , sort_list . toString ( ) )
230
+ } catch ( err ) { }
226
231
} ) ;
227
232
} ;
228
233
You can’t perform that action at this time.
0 commit comments