Skip to content

Commit

Permalink
Fixed empty ref to wrapper (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanemcca authored Oct 24, 2022
1 parent 6a9a169 commit 411eb71
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions autoHeightWebView/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ const getBaseScript = ({
}) =>
`
;
if (!document.getElementById("rnahw-wrapper")) {
var wrapper = document.createElement('div');
var wrapper = document.getElementById("rnahw-wrapper");
if (!wrapper) {
wrapper = document.createElement('div');
wrapper.id = 'rnahw-wrapper';
while (document.body.firstChild instanceof Node) {
wrapper.appendChild(document.body.firstChild);
Expand Down

0 comments on commit 411eb71

Please sign in to comment.