bdd: Skip geolocation tests if it's unavailable.
This should unbreak the build with older Qt versions.
This commit is contained in:
parent
9c87eaf371
commit
e7a816c0c0
@ -23,7 +23,7 @@
|
|||||||
if ("geolocation" in navigator) {
|
if ("geolocation" in navigator) {
|
||||||
navigator.geolocation.getCurrentPosition(on_success, on_error);
|
navigator.geolocation.getCurrentPosition(on_success, on_error);
|
||||||
} else {
|
} else {
|
||||||
console.log("[FAIL] geolocation unavailable");
|
console.log("[SKIP] geolocation unavailable");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user