Skip to content

Instantly share code, notes, and snippets.

View librevlad's full-sized avatar
🐘

Vladislav Novik librevlad

🐘
View GitHub Profile
@librevlad
librevlad / fake-location.js
Created February 7, 2020 18:29 — forked from mittsh/fake-location.js
Simulate a fake location in browser API
navigator.geolocation.getCurrentPosition = (fn) => {
setTimeout(() => {
fn({
coords: {
accuracy: 40,
altitude: null,
altitudeAccuracy: null,
heading: null,
latitude: 13.705848,
longitude: 100.622798,