Skip to content

Commit

Permalink
fix: await getValue()
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Oct 16, 2023
1 parent 05c8b51 commit 141d18c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/location.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var CoCreateMapGetLocation = function () {
this.attr = 'geolocation';
this.element = null;

this.init = () => {
this.init = async () => {
if (!this.ccMapAnimate) {
this.ccMapAnimate = new CoCreateMapAnimate();
}
Expand All @@ -21,7 +21,7 @@ var CoCreateMapGetLocation = function () {
}

if (this.element.getValue)
this.element.setValue(this.element.getValue())
this.element.setValue(await this.element.getValue())

this.element.getValue = () => {
let coordinates = this.getPositionAsJSon(position)
Expand Down

0 comments on commit 141d18c

Please sign in to comment.