Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
madmicio committed Dec 6, 2023
1 parent 2364a74 commit 3f4ffd1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Empty file removed funding.yml
Empty file.
6 changes: 3 additions & 3 deletions src/ampli-panel-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -57,6 +57,7 @@ export class AmpliPanelCard extends LitElement {
`;
document.head.appendChild(style);

}


Expand Down Expand Up @@ -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() {
Expand All @@ -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`
<div class="card">
Expand Down

0 comments on commit 3f4ffd1

Please sign in to comment.