Closed chentsulin closed 9 years ago
if (window) {
will throw ReferenceError: window is not defined, so I change it to
ReferenceError: window is not defined
if (typeof window !== 'undefined') {
will throw
ReferenceError: window is not defined
, so I change it to