Skip to content

Commit 6ff18ba

Browse files
committed
Remove redundant passive listener
1 parent 7ac6ec6 commit 6ff18ba

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

obj.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* obs.js uses the Navigator and Battery APIs to get realtime network and
5-
* battery status of your users’ device. You can use this information to
5+
* battery status of your user’s device. You can use this information to
66
* adapt to their context, or send the data off to SpeedCurve with
77
* `obs-speedcurve.js`.
88
*/
@@ -100,9 +100,7 @@
100100

101101
// Listen out for network condition changes and rerun the function.
102102
if (connection && typeof connection.addEventListener === 'function') {
103-
connection.addEventListener('change', refreshConnectionStatus, {
104-
passive: true
105-
});
103+
connection.addEventListener('change', refreshConnectionStatus);
106104
}
107105

108106

0 commit comments

Comments
 (0)