diff --git a/app/assets/javascripts/fix_legacy_clients.js b/app/assets/javascripts/fix_legacy_clients.js new file mode 100644 index 0000000..e737ea8 --- /dev/null +++ b/app/assets/javascripts/fix_legacy_clients.js @@ -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://'); + } +}