diff --git a/api/internal/geolocation.js b/api/internal/geolocation.js index 43b7267d7a..98deaa62e4 100644 --- a/api/internal/geolocation.js +++ b/api/internal/geolocation.js @@ -1,3 +1,4 @@ +/* global GeolocationCoordinates, GeolocationPosition, GeolocationPositionError */ import ipc from '../ipc.js' import os from '../os.js' @@ -17,7 +18,6 @@ class Watcher { } } - globalThis.addEventListener('data', this.listener) } @@ -74,7 +74,7 @@ function createGeolocationPosition (data) { configurable: false, writable: false, value: data.coords.speed <= 0 ? null : data.coords.speed - }, + } }) return Object.create(GeolocationPosition.prototype, {