Skip to content

Commit f80fd0d

Browse files
committed
no need for document.head fallback
1 parent c188a1f commit f80fd0d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/loadSdk.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ function loadSdk() {
2222
reject(new Error('Could not load YouTube SDK'));
2323
};
2424

25-
const node = document.head || document.getElementsByTagName('head')[0];
26-
node.appendChild(script);
25+
document.head.appendChild(script);
2726
});
2827
}
2928

0 commit comments

Comments
 (0)