Skip to content

Commit

Permalink
fix: cwa eew
Browse files Browse the repository at this point in the history
  • Loading branch information
cstrikeasia committed Jan 20, 2025
1 parent 69f2d59 commit a75486a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
Binary file modified eew-source.trem
Binary file not shown.
9 changes: 9 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ class Plugin {

constructor(ctx) {
this.#ctx = ctx;
const storedData = JSON.parse(localStorage.getItem("eew-source-plugin")) || [];
if (!storedData.includes("cwa")) {
storedData.push("cwa");
localStorage.setItem("eew-source-plugin", JSON.stringify(storedData));
}
this.eewSource =
JSON.parse(localStorage.getItem("eew-source-plugin")) || [];
this.supportSource = [
Expand Down Expand Up @@ -86,6 +91,10 @@ class Plugin {
if (!TREM.constant.EEW_AUTHOR) {
TREM.constant.EEW_AUTHOR = [];
}
if (key === "cwa") {
inputElement.checked = true;
return;
}
if (!inputElement.checked) {
if (!TREM.constant.EEW_AUTHOR.includes(key)) {
TREM.constant.EEW_AUTHOR.push(key);
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eew-source",
"version": "0.0.6",
"version": "0.0.7",
"description": {
"zh_tw": "TREM-Lite EEW Source Plugin",
"zh-Hant": "TREM-Lite 地震速報來源擴充套件"
Expand Down
10 changes: 5 additions & 5 deletions signature.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"timestamp": 1733644088360,
"version": "0.0.6",
"timestamp": 1737393669085,
"version": "0.0.7",
"fileHashes": {
"index.js": "ba5def1f397bf7f196a3c5fe6dbaab70b6e8ed57e63bb88caf7de94dd9344007",
"info.json": "dd3dad8a22508b852dac4d691c6378fd1e5e19e88b0a8beb2037920113a246f0"
"index.js": "a80ff8abc99b351d9e54e76d8829e12a2f6a7ba29c17b91cd0c8457db895a5a6",
"info.json": "25a5d5a0c97e3cc229287e937e208eed2ee910c564a427978966ee8857b69260"
},
"signature": "T9chTSt0On8i+szu/bmf4Jsi8Woi/rKTWFRVdHC21o0zWkst3DRI6Sx5nfPs6jHXE5PKXaN/WU/NDf2ObDA6t9RB4V51CNiGs+OpCRZMa4UA2h1e35q9WiAq2qhXyew+LuWFGbmchSxYctTICYZWEClb4d0TsArkV2q/G/eV5mgPrGDs7ZDd8pYvWxED7MyjW7Py/PsMX9OVg4l0sgyL2+qghb0BxX7ze6vsSFLl0jWZQY+NFZQB/v4RmG/RYmYn4HmDMJDbo5VGduezBBrWj164zli+Vq3Kf+ufoIxXV1rhUcYf+C+DF3qMEtgM6NTiDCaUhRNBj2c8q6uvnyEtIA=="
"signature": "vqBZpeCEQg2ufuO/SO1sDU8PYyDHwAKIga2Mb5q43p+Gl61bwY5U2of4cfD7uPETR64syj/oph9rfww/5Ml9GC3MKfLDqQdn7AIp4ropGLJ+n5o6Cl1zDAV9Uvllfasf2k5dKnm3ld89MBV1R0UPparY0Z543KxA2jQwRndFZSnmlts6qVcI48T27mojkdvBo/zs1IvHItu9Vm+jyyGrerZsmxIOgX4LOO7hHJmA+rAGACAL0TWRzroALMMiZHTzkbZxQUdpzc+nmFqE6wLG1fGxt4Gk6zDygRo8jfjGehyQP5n6VGj7ofe2hEk0zJDbC4bsrM6mGVyQl0bHu+HfMQ=="
}

0 comments on commit a75486a

Please sign in to comment.