Skip to content

Commit

Permalink
Update src/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 8f087cd commit 5506f1d
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/americana.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,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();

let options = {};

Expand Down

0 comments on commit 5506f1d

Please sign in to comment.