ran npm run tdd & generated TDD
This commit is contained in:
3
test/httpsRedirect/httpsRedirect.js
Normal file
3
test/httpsRedirect/httpsRedirect.js
Normal file
@ -0,0 +1,3 @@
|
||||
module.exports = () => {
|
||||
if (location.protocol !== 'https:') location.replace('https://' + location.href.split('//')[1]);
|
||||
};
|
||||
Reference in New Issue
Block a user