Honestly f this warning
This commit is contained in:
@@ -30,7 +30,6 @@ onMounted(() => {
|
|||||||
|
|
||||||
function acceptGeoloc() {
|
function acceptGeoloc() {
|
||||||
navigator.permissions.query({ name: "geolocation" }).then((result) => {
|
navigator.permissions.query({ name: "geolocation" }).then((result) => {
|
||||||
console.log(result.state);
|
|
||||||
if (result.state === "granted" || result.state === "prompt") {
|
if (result.state === "granted" || result.state === "prompt") {
|
||||||
hasAcceptedGeoloc.value = true;
|
hasAcceptedGeoloc.value = true;
|
||||||
hasRefusedGeoloc.value = false;
|
hasRefusedGeoloc.value = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user