From 3f4ffd1bdd4f69f588e76b6f1e3e965c7ad86447 Mon Sep 17 00:00:00 2001 From: madmicio Date: Wed, 6 Dec 2023 18:10:33 +0100 Subject: [PATCH] release --- .github/workflows/release.yml | 4 ++-- funding.yml | 0 src/ampli-panel-card.ts | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 funding.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a269bb3..1aec470 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: dist/ampli-panel-card.ts - asset_name: ampli-panel-card.ts + file: dist/ampli-panel-card.js + asset_name: ampli-panel-card.js tag: ${{ github.ref }} overwrite: true \ No newline at end of file diff --git a/funding.yml b/funding.yml deleted file mode 100644 index e69de29..0000000 diff --git a/src/ampli-panel-card.ts b/src/ampli-panel-card.ts index e725da1..1db0764 100644 --- a/src/ampli-panel-card.ts +++ b/src/ampli-panel-card.ts @@ -41,7 +41,7 @@ export class AmpliPanelCard extends LitElement { private _show_inputs: boolean; private _show_inputs2: boolean; private _show_sound_output: boolean; - private loadLocalFont(scriptDirectory: string) { + private loadLocalFont(scriptDirectory: string, path: string) { const style = document.createElement("style"); style.textContent = ` @font-face { @@ -57,6 +57,7 @@ export class AmpliPanelCard extends LitElement { `; document.head.appendChild(style); + } @@ -84,7 +85,7 @@ constructor() { this._show_inputs = false; const scriptPath = new URL(import.meta.url).pathname; const scriptDirectory = scriptPath.substring(0, scriptPath.lastIndexOf('/')); - this.loadLocalFont(scriptDirectory); + this.loadLocalFont(scriptDirectory, scriptPath); } render() { @@ -110,7 +111,6 @@ render() { state1on = this.config.entity && !["off", "idle"].includes(stateObj.state); state2on = this.config.zone2 && !["off", "idle"].includes(stateObj2.state); } - return html`