Skip to content

Commit c79a74e

Browse files
StephenHonorpaulboocock
authored andcommitted
Add a setter the passive property within options object for detectPassiveEvents
1 parent 8d5a43b commit c79a74e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "Add missing setter to detectPassiveEvents (#995)",
5+
"type": "none",
6+
"packageName": "@snowplow/browser-tracker-core"
7+
}
8+
],
9+
"packageName": "@snowplow/browser-tracker-core",
10+
"email": "[email protected]"
11+
}

libraries/browser-tracker-core/src/tracker/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,7 @@ export function Tracker(
931931
get: function get() {
932932
passive = true;
933933
},
934+
set: function set() {},
934935
});
935936
// note: have to set and remove a no-op listener instead of null
936937
// (which was used previously), becasue Edge v15 throws an error

0 commit comments

Comments
 (0)