Skip to content

Commit

Permalink
Update src/bare_americana.js
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Lee <[email protected]>
  • Loading branch information
ZeLonewolf and jleedev authored Oct 30, 2023
1 parent 1deb28d commit 72923dc
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/bare_americana.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,7 @@ const initializeMap = async () => {
});
};

let map;

if ("fonts" in document) {
document.fonts.ready.then(() => {
map = initializeMap();
});
} else {
// Font Loading API not supported, run the code immediately
map = initializeMap();
}

export { map };
export const map = await initializeMap();

function shieldDefLoad() {
if (window.top === window.self) {
Expand Down

0 comments on commit 72923dc

Please sign in to comment.