Skip to content

Commit

Permalink
fix a error when add a source
Browse files Browse the repository at this point in the history
  • Loading branch information
lizongying committed Dec 20, 2024
1 parent 59c8f31 commit cb7c942
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
## 更新日誌

### v1.3.8.10-kitkat

* 修復新增視頻源時的錯誤

### v1.3.8.10

* 修復新增視頻源時的錯誤

### v1.3.8.9-kitkat

* 優化EPG
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/raw/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ <h4>視頻源可以设置為地址/文本/文件其中之一</h4>
}

const handleAdd = () => {
const addList = document.querySelectorAll('.add');
const addList = document.querySelectorAll('.new-source');
[...addList].forEach(add => {
add.value = t('add');
add.onclick = () => {
Expand Down Expand Up @@ -369,7 +369,7 @@ <h4>視頻源可以设置為地址/文本/文件其中之一</h4>
return
}

let htmlString = `<div class="container history"><input type="text" readonly value="${v}" class="source-green"/><input type="button" value="增加" class="add" data-uri="${v}"/></div>`;
let htmlString = `<div class="container history"><input type="text" readonly value="${v}" class="source-green"/><input type="button" value="新增" class="add new-source" data-uri="${v}"/></div>`;
let doc = new DOMParser().parseFromString(htmlString, 'text/html');
sourcesNew.appendChild(doc.body.firstChild);
})
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version_code": 16975881, "version_name": "v1.3.8.9"}
{"version_code": 16975882, "version_name": "v1.3.8.10"}

0 comments on commit cb7c942

Please sign in to comment.