Skip to content

Commit

Permalink
no need for document.head fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Nov 12, 2021
1 parent c188a1f commit f80fd0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/loadSdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ function loadSdk() {
reject(new Error('Could not load YouTube SDK'));
};

const node = document.head || document.getElementsByTagName('head')[0];
node.appendChild(script);
document.head.appendChild(script);
});
}

Expand Down

0 comments on commit f80fd0d

Please sign in to comment.