Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function (w) {
- 'use strict';
- var secureProtocol = 'https';
- if ( !w.location.protocol.startsWith(secureProtocol) ) {
- w.location.href = w.location.href.replace(/^[^:]+/, secureProtocol);
- }
- })(window);
Advertisement
Add Comment
Please, Sign In to add comment