Skip to content

Commit

Permalink
v1.5.3.1
Browse files Browse the repository at this point in the history
[*] fixed font setting bug after resetting
  • Loading branch information
henryxrl committed Oct 26, 2024
1 parent 005196d commit 4093396
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,19 @@

火狐插件:

1. [易笺正常版 (v1.5.3)](https://addons.mozilla.org/zh-CN/firefox/addon/yijian/)
1. [易笺正常版 (v1.5.3.1)](https://addons.mozilla.org/zh-CN/firefox/addon/yijian/)

2. [易笺无界面版 (v1.2.9.2)](https://addons.mozilla.org/zh-CN/firefox/addon/yijian_nogui/)

Chrome插件:

1. [易笺正常版 (v1.5.3)](https://chrome.google.com/webstore/detail/%E6%98%93%E7%AC%BA/dbanahlbopbjpgdkecmclbbonhpohcaf?hl=en&authuser=0)
1. [易笺正常版 (v1.5.3.1)](https://chrome.google.com/webstore/detail/%E6%98%93%E7%AC%BA/dbanahlbopbjpgdkecmclbbonhpohcaf?hl=en&authuser=0)

2. [易笺无界面版 (v1.2.9.2)](https://chrome.google.com/webstore/detail/%E6%98%93%E7%AC%BA%EF%BC%88%E6%97%A0%E7%95%8C%E9%9D%A2%E7%89%88%EF%BC%89/mifnkjlmnnaamfgmhmjdjiplaaladjlo?hl=en&authuser=0)

Edge插件:

1. [易笺正常版 (v1.5.3)](https://microsoftedge.microsoft.com/addons/detail/%E6%98%93%E7%AC%BA/pabihehbdhldbdliffaddllmjlknmpak)
1. [易笺正常版 (v1.5.3.1)](https://microsoftedge.microsoft.com/addons/detail/%E6%98%93%E7%AC%BA/pabihehbdhldbdliffaddllmjlknmpak)

2. 易笺无界面版 (v1.2.9.2)

Expand Down
6 changes: 3 additions & 3 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,19 @@ Big thanks to [Manjusaka](https://github.com/Zheaoli) for his amazing help and h

Firefox:

1. [Regular (v1.5.3)](https://addons.mozilla.org/en-US/firefox/addon/yijian/)
1. [Regular (v1.5.3.1)](https://addons.mozilla.org/en-US/firefox/addon/yijian/)

2. [No-UI (v1.2.9.2)](https://addons.mozilla.org/en-US/firefox/addon/yijian_nogui/)

Chrome:

1. [Regular (v1.5.3)](https://chrome.google.com/webstore/detail/%E6%98%93%E7%AC%BA/dbanahlbopbjpgdkecmclbbonhpohcaf?hl=en&authuser=0)
1. [Regular (v1.5.3.1)](https://chrome.google.com/webstore/detail/%E6%98%93%E7%AC%BA/dbanahlbopbjpgdkecmclbbonhpohcaf?hl=en&authuser=0)

2. [No-UI (v1.2.9.2)](https://chrome.google.com/webstore/detail/%E6%98%93%E7%AC%BA%EF%BC%88%E6%97%A0%E7%95%8C%E9%9D%A2%E7%89%88%EF%BC%89/mifnkjlmnnaamfgmhmjdjiplaaladjlo?hl=en&authuser=0)

Edge:

1. [Regular (v1.5.3)](https://microsoftedge.microsoft.com/addons/detail/%E6%98%93%E7%AC%BA/pabihehbdhldbdliffaddllmjlknmpak)
1. [Regular (v1.5.3.1)](https://microsoftedge.microsoft.com/addons/detail/%E6%98%93%E7%AC%BA/pabihehbdhldbdliffaddllmjlknmpak)

2. 易笺无界面版 (v1.2.9.2)

Expand Down
2 changes: 1 addition & 1 deletion manifests/Chrome/regular/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "易笺",
"description": "txt(小说)阅读器:支持秒开本地的所有txt文件,自动排版,自动分页,自动生成目录,记录阅读进度。",
"version": "1.5.3",
"version": "1.5.3.1",
"background": {
"service_worker": "scripts_extension/Chrome/regular/activate.js"
},
Expand Down
2 changes: 1 addition & 1 deletion manifests/Firefox/regular/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "易笺",
"description": "txt(小说)阅读器:支持秒开本地的所有txt文件,自动排版,自动分页,自动生成目录,记录阅读进度。",
"version": "1.5.3",
"version": "1.5.3.1",
"background": {
"scripts": [
"scripts_extension/Firefox/regular/activate.js"
Expand Down
2 changes: 2 additions & 0 deletions scripts/ui_settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,7 @@ function setSelectorValue(id, selectedIndex) {
$select.selectedIndex = selectedIndex;
const selectedValue = $options[selectedIndex].value;
const selectedText = $options[selectedIndex].text;
const selectedAttr = $options[selectedIndex].getAttribute("style");

// Get the custom dropdown elements
const $customSelect = $select.closest(".select");
Expand All @@ -1101,6 +1102,7 @@ function setSelectorValue(id, selectedIndex) {

// Update the visible styled select text
$styledSelect.textContent = selectedText;
$styledSelect.setAttribute("style", selectedAttr);

// Remove 'is-selected' from all custom options and set it on the correct one
$customOptions.forEach(($li, index) => {
Expand Down

0 comments on commit 4093396

Please sign in to comment.