Guest User

Untitled

a guest
Jul 16th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. (function () {
  2. var wrapper = {
  3. init: function () {
  4. if (typeof(opener) === 'object') {
  5. (opener !== null) ? closewin() : redirect();
  6. };
  7. }
  8. };
  9.  
  10. function closewin() {
  11. window.close()
  12. };
  13.  
  14. function redirect() {
  15. return window.location.replace(window.location.hostname)
  16. };
  17.  
  18. wrapper.init();
  19. })();
Add Comment
Please, Sign In to add comment