Skip to content
Snippets Groups Projects
Commit 10840796 authored by Benoit Alessandroni's avatar Benoit Alessandroni
Browse files

fix: core import

parent 984352eb
No related branches found
No related tags found
2 merge requests!7fix: backlink on left in territory profile...,!4Draft: add: alpha release + switch to core beta
Pipeline #16552 passed
......@@ -36,7 +36,7 @@ export function path() {
let path = ".";
if(window.orbit) {
let component = window.orbit.npm.find(e=>e.package==`@startinblox/custom-tzcld`);
path = `https://cdn.skypack.dev/${component.package}@${component.version}/dist`;
path = `https://cdn.jsdelivr.net/npm/${component.package}@${component.version}/dist`;
if(component.path) {
path = component.path.replace('/index.js', '')
}
......@@ -56,10 +56,10 @@ export function community_uniq() {
}
export function coreVersion() {
let coreUrl = "https://unpk.com/@startinblox/core@beta";
let coreUrl = "https://cdn.jsdelivr.net/npm/@startinblox/core";
if(window.orbit) {
let core = window.orbit.npm.find(e=>e.package=='@startinblox/core');
coreUrl += `@${core.version}`;
coreUrl += `@${core.version}/+esm`;
if(core.path) {
coreUrl = core.path;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment