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 @@ -200,7 +200,7 @@ function getCookie(name)
200
200
201
201
function getSelectedTeams ( )
202
202
{
203
- var cookieVal = getCookie ( "domjudge_teamselection" ) ;
203
+ var cookieVal = localStorage . getItem ( "domjudge_teamselection" ) ;
204
204
if ( cookieVal === null || cookieVal === "" ) {
205
205
return new Array ( ) ;
206
206
}
@@ -284,10 +284,15 @@ function toggle(id, show)
284
284
}
285
285
286
286
var cookieVal = JSON . stringify ( favTeams ) ;
287
- setCookie ( "domjudge_teamselection" , cookieVal ) ;
287
+ localStorage . setItem ( "domjudge_teamselection" , cookieVal ) ;
288
288
289
289
290
290
$ ( '.loading-indicator' ) . addClass ( 'ajax-loader' ) ;
291
+ // If we are on a local file system, reload the window
292
+ if ( window . location . protocol === 'file:' ) {
293
+ window . location . reload ( ) ;
294
+ return ;
295
+ }
291
296
$ . ajax ( {
292
297
url : scoreboardUrl ,
293
298
cache : false
You can’t perform that action at this time.
0 commit comments