Tweak the template/css structure
This commit is contained in:
parent
1afffb0a73
commit
56fe115407
24 changed files with 10 additions and 7 deletions
|
|
@ -11,7 +11,7 @@ export class RipCryptIcon extends StyledShadowElement(HTMLElement) {
|
|||
static formAssociated = false;
|
||||
|
||||
/* Stuff for the mixin to use */
|
||||
static _stylePath = `components/icon.css`;
|
||||
static _stylePath = `css/components/icon.css`;
|
||||
|
||||
|
||||
static _cache = new Map();
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ export function StyledShadowElement(Base) {
|
|||
if (this.constructor._styles) {
|
||||
this._style.innerHTML = this.constructor._styles;
|
||||
} else {
|
||||
fetch(`./systems/${game.system.id}/Apps/${this.constructor._stylePath}`)
|
||||
fetch(`./systems/${game.system.id}/templates/${this.constructor._stylePath}`)
|
||||
.then(r => r.text())
|
||||
.then(t => {
|
||||
this.constructor._styles = t;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue