All files / src browser.ts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22                11x               11x       11x  
/*
 * Copyright (c) 2015 NAVER Corp.
 * egjs projects are licensed under the MIT license
 */
/* eslint-disable no-new-func, no-nested-ternary */
 
let win: any;
 
Iif (typeof window === "undefined") {
  // window is undefined in node.js
  win = {
    navigator: {
      userAgent: "",
    },
  };
} else {
  win = window;
}
/* eslint-enable no-new-func, no-nested-ternary */
 
export { win as window };