This repository was archived by the owner on Feb 26, 2024. It is now read-only.
Commit 51f2e1f
fix(property-descriptor): do not use document object in Safari web worker
In propertyDescriptorPatch(), when running is Safari browser, patchViaCapturingAllTheEvents() is called
which uses document.addEventListener().
When this code runs in a web worker, there is no document.
Fix by changing document.addEventListener() to self.addEventListener.1 parent 737f8d8 commit 51f2e1f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
0 commit comments