Skip to content

Commit

Permalink
Merge pull request orizens#203 from AndrewTakker/master
Browse files Browse the repository at this point in the history
Fix for IE 11.
  • Loading branch information
orizens authored Nov 27, 2017
2 parents 5a8182a + 1945ebc commit 2fa9f74
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 2fa9f74

Please sign in to comment.