Skip to content

Commit

Permalink
chore: fix signature-verification-failure
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-sienkiewicz-asi committed Mar 14, 2024
1 parent 8133654 commit 6bc5827
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/ui/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import {getImage, getJSON, ResourceType} from '../util/ajax.js';
import {
RequestManager,
mapSessionAPI,
mapLoadEvent,
getMapSessionAPI,
postPerformanceEvent,
postMapLoadEvent,
AUTH_ERR_MSG,
storeAuthState,
removeAuthState,
mapLoadEvent_
removeAuthState
} from '../util/mapbox.js';
import Style from '../style/style.js';
import EvaluationParameters from '../style/evaluation_parameters.js';
Expand Down Expand Up @@ -3901,6 +3901,7 @@ class Map extends Camera {
}
}
});

postMapLoadEvent(this._getMapId(), this._requestManager._skuToken, this._requestManager._customAccessToken, () => {});
}

Expand Down Expand Up @@ -4024,7 +4025,7 @@ class Map extends Camera {
removeAuthState(this.painter.context.gl);

mapSessionAPI.remove();
mapLoadEvent_.remove();
mapLoadEvent.remove();

this._removed = true;
this.fire(new Event('remove'));
Expand Down
4 changes: 2 additions & 2 deletions src/util/mapbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -662,9 +662,9 @@ const turnstileEvent_ = new TurnstileEvent();
// $FlowFixMe[method-unbinding]
export const postTurnstileEvent: (tileUrls: Array<string>, customAccessToken?: ?string) => void = turnstileEvent_.postTurnstileEvent.bind(turnstileEvent_);

export const mapLoadEvent_ = new MapLoadEvent();
export const mapLoadEvent = new MapLoadEvent();
// $FlowFixMe[method-unbinding]
export const postMapLoadEvent: (number, string, ?string, EventCallback) => void = mapLoadEvent_.postMapLoadEvent.bind(mapLoadEvent_);
export const postMapLoadEvent: (number, string, ?string, EventCallback) => void = mapLoadEvent.postMapLoadEvent.bind(mapLoadEvent);

export const performanceEvent_: PerformanceEvent = new PerformanceEvent();
// $FlowFixMe[method-unbinding]
Expand Down

0 comments on commit 6bc5827

Please sign in to comment.