Skip to content

Commit

Permalink
Merge pull request orizens#217 from nerumo/master
Browse files Browse the repository at this point in the history
use html container if passed in
  • Loading branch information
orizens authored Nov 30, 2017
2 parents 81616ae + 5c15eb1 commit 8fdb44e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/ngx-ins-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ export function resolveContainerElement(
fromRoot: boolean
): any {
const hasWindow = window && !!window.document;
const containerIsString =
selector && hasWindow && typeof selector === 'string';
let container = hasWindow && scrollWindow ? window : defaultElement;
if (containerIsString) {
if (selector) {
const containerIsString =
selector && hasWindow && typeof selector === 'string';
container = containerIsString
? findElement(selector, defaultElement.nativeElement, fromRoot)
: selector;
Expand Down

0 comments on commit 8fdb44e

Please sign in to comment.