4 lines
161 B
JavaScript
4 lines
161 B
JavaScript
const httpsRedirect = () => {
|
|
if (location.protocol !== 'https:') location.replace('https://' + location.href.split('//')[1]);
|
|
};
|
|
module.exports = httpsRedirect |