Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Commit e687827

Browse files
Delano NeelemanCaerusKaru
Delano Neeleman
authored andcommitted
fix(inline): use currentScript fallback on IE 10-11 (#94)
A fallback was made for _document.currentScript. Except when trying to remove the child from the serverNode, it did not use the fallback.
1 parent 372a99e commit e687827

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/api/event.recorder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function start(prebootData: PrebootData, win?: PrebootWindow) {
7373
return;
7474
}
7575

76-
serverNode.removeChild(_document.currentScript);
76+
serverNode.removeChild(currentScript);
7777

7878
const opts = prebootData.opts || ({} as PrebootOptions);
7979
let eventSelectors = opts.eventSelectors || [];

0 commit comments

Comments
 (0)