kopia lustrzana https://github.com/shoelace-style/shoelace
show dev/next
rodzic
647ab0ab78
commit
9f3bf24d06
|
@ -1,4 +1,6 @@
|
|||
(() => {
|
||||
const isDev = location.hostname === 'localhost';
|
||||
const isNext = location.hostname === 'next.shoelace.style';
|
||||
const customElements = fetch('/dist/custom-elements.json')
|
||||
.then(res => res.json())
|
||||
.catch(err => console.error(err));
|
||||
|
@ -280,7 +282,7 @@
|
|||
// Add version
|
||||
const version = document.createElement('div');
|
||||
version.classList.add('sidebar-version');
|
||||
version.textContent = metadata.package.version;
|
||||
version.textContent = isDev ? 'Development' : isNext ? 'Next' : metadata.package.version;
|
||||
target.appendChild(version);
|
||||
|
||||
// Add repo buttons
|
||||
|
|
Ładowanie…
Reference in New Issue