pull/478/head
Cory LaViska 2021-07-06 08:39:40 -04:00
rodzic 647ab0ab78
commit 9f3bf24d06
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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