Guest User

Untitled

a guest
Oct 1st, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. (function (w) {
  2. 'use strict';
  3.  
  4. var secureProtocol = 'https';
  5.  
  6. if ( !w.location.protocol.startsWith(secureProtocol) ) {
  7. w.location.href = w.location.href.replace(/^[^:]+/, secureProtocol);
  8. }
  9. })(window);
Advertisement
Add Comment
Please, Sign In to add comment