pull/481/head
Cory LaViska 2020-12-15 17:30:03 -05:00
commit 2d4e1357ce
1 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -36,8 +36,13 @@ import { defineCustomElements, setAssetPath } from '@shoelace-style/shoelace'
// ...
const rootUrl = document.currentScript.src.replace(/\/packs.*$/, '')
// Path to the assets folder (should be independent on the current script source path
// to work correctly in different environments)
setAssetPath(rootUrl + '/packs/js/')
// This enables all web components for the current page
setAssetPath(document.currentScript.src)
defineCustomElements()
```