Skip to content

Commit

Permalink
Merge pull request #40 from htmltiger/htmltiger-patch-1
Browse files Browse the repository at this point in the history
minor fix for ALL filetype
  • Loading branch information
htmltiger authored Mar 13, 2022
2 parents 65c4ac9 + 619a460 commit 97ff4b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config-editor-card.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
console.info("Config Editor 4.1");
console.info("Config Editor 4.2");
const LitElement = window.LitElement || Object.getPrototypeOf(customElements.get("hui-masonry-view") );
const html = LitElement.prototype.html;
const css = LitElement.prototype.css;
Expand Down Expand Up @@ -77,7 +77,7 @@ render(){
this.edit.ext = this.localGet('Ext')||'yaml';
this.edit.basic = this.localGet('Basic')||'';
if(this.fileList = JSON.parse(this.localGet('List'+this.edit.ext))){
if(this.openedFile.endsWith("."+this.edit.ext)){
if(this.extOk(this.openedFile)){
setTimeout(this.oldText, 500, this);
}
}else{this.List();}
Expand Down Expand Up @@ -239,7 +239,7 @@ async List(){
this.infoLine = e.msg;
this.fileList = e.file.slice().sort();
this.saveList();
if(this.openedFile.endsWith("."+this.edit.ext)){
if(this.extOk(this.openedFile)){
setTimeout(this.oldText, 500, this);
}
}
Expand Down

0 comments on commit 97ff4b3

Please sign in to comment.