From ca56943e5314d64d02d5ebb18d9d5ba7ccdc7d03 Mon Sep 17 00:00:00 2001 From: Matthew Kalinin Date: Wed, 10 Apr 2024 17:36:57 +0300 Subject: [PATCH] fix common ts case --- example/rotate-tilt-controls/common.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/example/rotate-tilt-controls/common.ts b/example/rotate-tilt-controls/common.ts index 1a75c96..9f6ef90 100644 --- a/example/rotate-tilt-controls/common.ts +++ b/example/rotate-tilt-controls/common.ts @@ -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]