gauge/app/assets/javascripts/fix_legacy_clients.js

6 lines
235 B
JavaScript
Raw Permalink Normal View History

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