Skip to content

Commit

Permalink
Merge pull request #22 from barbatron/master
Browse files Browse the repository at this point in the history
Reference captured `config` instead of reading from `this`
  • Loading branch information
DSorlov authored Jan 25, 2023
2 parents 027d68c + ed92249 commit 6746f7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/hasl-departure-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class HASLDepartureCard extends HTMLElement {

// Updated
if (config.updated === true) {
if (this.config.updated_minutes==0 || this.config.updated_minutes < minutesSinceUpdate ) {
if (config.updated_minutes==0 || config.updated_minutes < minutesSinceUpdate ) {
html += `<table><tr>
<td class="last-update"><sub><i>${lang[culture].last_updated} ${updatedValue}</i></sub></td>
</tr></table>`;
Expand Down

0 comments on commit 6746f7f

Please sign in to comment.