Skip to content

Instantly share code, notes, and snippets.

View librevlad's full-sized avatar
🐘

Vladislav Novik librevlad

🐘
View GitHub Profile
@mittsh
mittsh / fake-location.js
Created July 10, 2019 12:11
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,