Hey all, I have a function thats similar to this
function func(){
navigator.permissions.query({name:"geolocation"})
.then((result)=>{
.catch(...)
}
//in all cases it returns some object {a:"1", b:"2"}
function anotherfunc(){
const funcResults = func() // i cant get it to await here
console.log(funcResults) //either uncaught (in promise) error or undefined
hmtltag.innerHTML = funcResults.b
}