Skip to content

Commit

Permalink
fix common ts case
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew44-mappable committed Apr 10, 2024
1 parent 488f91d commit ca56943
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions example/rotate-tilt-controls/common.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
import {BehaviorType, LngLatBounds, MMapBoundsLocation} from '@mappable-world/mappable-types';

mappable.import.loaders.unshift(async (pkg) => {
if (!pkg.startsWith('@mappable-world/mappable-default-ui-theme')) {
return;
}

if (location.href.includes('localhost')) {
await mappable.import.script(`/dist/index.js`);
} else {
await mappable.import.script(`https://unpkg.com/${pkg}/dist/index.js`);
}
// @ts-ignore
return window['@mappable-world/mappable-default-ui-theme'];
});

const BOUNDS: LngLatBounds = [
[54.58311, 25.9985],
[56.30248, 24.47889]
Expand Down

0 comments on commit ca56943

Please sign in to comment.