Skip to content

Commit

Permalink
Fixing issue with globals where rootElement is null
Browse files Browse the repository at this point in the history
  • Loading branch information
scalvert authored and rwjblue committed Oct 20, 2020
1 parent 631081e commit c01547b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function (assert: Assert) {
throw new Error(`${rootElement} is not a valid root element`);
}

rootElement = rootElement || getRootElement();
rootElement = rootElement || this.dom.rootElement || getRootElement();

if (arguments.length === 0) {
target = rootElement instanceof Element ? rootElement : null;
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@
dependencies:
lodash "^4.17.13"

"@babel/helper-remap-async-to-generator@^7.12.1":
"@babel/helper-remap-async-to-generator@^7.10.4", "@babel/helper-remap-async-to-generator@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.12.1.tgz#8c4dbbf916314f6047dc05e6a2217074238347fd"
integrity sha512-9d0KQCRM8clMPcDwo8SevNs+/9a8yWVVmaE80FGJcEP8N1qToREmWEGnBn8BUlJhYRFz6fqxeRL1sl5Ogsed7A==
Expand Down

0 comments on commit c01547b

Please sign in to comment.