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

fix: core import

parent 10840796
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 #16583 passed
...@@ -43,6 +43,7 @@ export function path() { ...@@ -43,6 +43,7 @@ export function path() {
} }
return path; return path;
} }
export function community_uniq() { export function community_uniq() {
let uniq = ""; let uniq = "";
if(window.orbit) { if(window.orbit) {
...@@ -56,10 +57,10 @@ export function community_uniq() { ...@@ -56,10 +57,10 @@ export function community_uniq() {
} }
export function coreVersion() { export function coreVersion() {
let coreUrl = "https://cdn.jsdelivr.net/npm/@startinblox/core"; let coreUrl = "https://cdn.jsdelivr.net/npm/@startinblox/core@beta/dist/index.js";
if(window.orbit) { if(window.orbit) {
let core = window.orbit.npm.find(e=>e.package=='@startinblox/core'); let core = window.orbit.npm.find(e=>e.package=='@startinblox/core');
coreUrl += `@${core.version}/+esm`; coreUrl += `https://cdn.jsdelivr.net/npm/@startinblox/core@${core.version}/dist/index.js`;
if(core.path) { if(core.path) {
coreUrl = 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