We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d1637c commit 6b21d76Copy full SHA for 6b21d76
packages/browser/src/helpers.ts
@@ -211,5 +211,9 @@ export function injectReportDialog(options: ReportDialogOptions = {}): void {
211
script.onload = options.onLoad;
212
}
213
214
- (document.head || document.body).appendChild(script);
+ const injectionPoint = document.head || document.body;
215
+
216
+ if (injectionPoint) {
217
+ injectionPoint.appendChild(script);
218
+ }
219
0 commit comments