Fix clients that have an HTTP URL left in the local storage

This commit is contained in:
Petko Bordjukov 2018-10-04 12:29:33 +03:00
parent 87bb472ccc
commit 6ee488b9c9
1 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,5 @@
if ('OpenFest-gauge-api' in localStorage) {
if (localStorage['OpenFest-gauge-api'].startsWith('http://')) {
localStorage['OpenFest-gauge-api'] = localStorage['OpenFest-gauge-api'].replace(/^http:\/\//, 'https://');
}
}