Skip to content

Commit

Permalink
Fix for IE 11.
Browse files Browse the repository at this point in the history
window.hasOwnProperty('document') dosn't work in IE 11.
  • Loading branch information
Andrey Komisarenko committed Nov 9, 2017
1 parent 7a69bab commit 1945ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/ngx-ins-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function resolveContainerElement(
defaultElement,
fromRoot: boolean
): any {
const hasWindow = window && window.hasOwnProperty('document');
const hasWindow = window && !!window.document;
const containerIsString =
selector && hasWindow && typeof selector === 'string';
let container = hasWindow && scrollWindow ? window : defaultElement;
Expand Down

0 comments on commit 1945ebc

Please sign in to comment.