From 69f2d59dad969e51f4f0bd0619586c01f4be60cf Mon Sep 17 00:00:00 2001 From: Miyashooooo Date: Sun, 8 Dec 2024 15:49:20 +0800 Subject: [PATCH] fix: trem eew --- eew-source.trem | Bin 2625 -> 2648 bytes index.js | 4 +++- info.json | 2 +- signature.json | 10 +++++----- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/eew-source.trem b/eew-source.trem index 53fd16c53cc1c495467e35dfee33421e1934babb..e88cd6519d4d74c132ca2363156017bbf9c81356 100644 GIT binary patch literal 2648 zcmZ`*XHXN^8V!URiot~5mk=OQLJv{|Tn$AqAYG6WTIfwe5fqUkun_4A0#YKqh=3H4 z&e8=b0s_(^J%|KEDUaRv-n?07-o10@o4Iq({c+};IR~Q;q=5ne3=9Bhc&sI}^VTg+ zIsm{Ma()E>0B~N8PC?Rc{uLIty~nRZ!_iAu_=w^`MSnz?UqplKMe{Vl`n)A<}u|Lg~Y1Y%!iP zP^E|LRn*pARkreB2xIWNm%(d-pXmxOzs|rKd z0z|HkHLK)AoeQJf<*!-Trh$9d^+b(+h4jayDUxWbk==T{xZ78@ep*(5wiUd0=pNZt zXlY7fer|oV*1K>)@c8ccfrglo+y}nf#+x0?b#oe0uIiy`b7vc$DI;es!Lnh8^jx`j zY@Wa1{5U)}+eq49|FE8Wg@5Nt=FU5fnfnT1{(=byGf^_qoa0#hjf-9(sd!(-RP~!& z8^zqJ<-qHY?ASLy5$jilDrKz*){I<@)h4v$8rW4jnd+K!MB(9S^uTmB?t?7 zVP`t)s@ZGya`Rsk_^5D3!l8KWruYXYZ?Ig(?c8MTt>i~i4BE3jLMW|gjg@r5HeN7Z zLr{YJaN%%37fum;ac(7c+}8@YvIk;<`9bLz9d>je%qHGEb`>k934B%QLpFSoPL`O? zinwBn*yUY+_AwrjZxK!kH+Xbk=w6l4l;9@kTqxQP0&t*m_zxzO@Y>L2r6w+R5eIm3 zylRcOuBUt8q?)ws66I~+mW4uXK}+84k`>*SyQ6QU2znlk#i!g|_Q2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396RV%W=8Tn?b3*qO-Shod^uV=#KOV)@Mg&1O_sDTgopvfh6NBM4YvBzwn$A zRLW;bfeNH|)$Wz3Wp{;SUuX{14$kdV;>qC60tjFoCkYW8W&#YBAmFg49w|uhvP5PQ zhIw!>&j@Idq~3Pes88iu+eqoX1|>ek)@u~rNT-An`*x(zv5rt#9WuH+IE0r(xmawB ziy80iOr1FrZ|Cc}{bq4*>u~jVz6sQoWbA|u+G1~yM`Rl^EH4LBCV28kz66bz`YEk< zhg2+U&&q4=z2XS#icd4%SFTgE39rxdcKC2j`i4>L<4^wAY%h0Jk<44a-R?7(k9)jL z8~ba>G&$5_)^?$)>6L7ei^c|Gl6J0jzJ>xB+{@jiIf0hdzQz(O`c+?tld?XYpbly= zVZfwY?L_-DDekhJD<9w*fj!5v=av=^yoEW%th{*Gqu#UK8K$PEjNA{OPF|p&$vBH2 z2!HYQVQ-1>@KyY+)sP8u!!Ttd-NJp1?>RZ2`ZteT7&9>PvHkxJcBqNJPhQ0D@!v-F yC+bf-{u=`Tc@d`%`yAH$Kj!=s_NV&(2g4otQ;QbHzpEhtfDSL^a7O;NJ@7BkU$+SW diff --git a/index.js b/index.js index 1f4074a..3f820b9 100644 --- a/index.js +++ b/index.js @@ -18,7 +18,9 @@ class Plugin { const eewSource = JSON.parse(localStorage.getItem("eew-source-plugin")) || []; TREM.constant.EEW_AUTHOR = eewSource; - TREM.constant.SHOW_TREM_EEW = true; + if (eewSource.includes('trem')) { + TREM.constant.SHOW_TREM_EEW = true; + } window.this_constant = TREM.constant.EEW_AUTHOR; logger.info( "Earthquake early warning source change success!", diff --git a/info.json b/info.json index 0cb555d..5d72ec5 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "eew-source", - "version": "0.0.5", + "version": "0.0.6", "description": { "zh_tw": "TREM-Lite EEW Source Plugin", "zh-Hant": "TREM-Lite 地震速報來源擴充套件" diff --git a/signature.json b/signature.json index 31e96b7..5de8477 100644 --- a/signature.json +++ b/signature.json @@ -1,9 +1,9 @@ { - "timestamp": 1733638711830, - "version": "0.0.5", + "timestamp": 1733644088360, + "version": "0.0.6", "fileHashes": { - "index.js": "3ebe32adb620447f7a60191ae28ed3230700bb3e04d8dedac87724d0bc659ad5", - "info.json": "44af1b80c3a484eecb3ef503ba1c3be9040aad2f7994df9ec95098d3adc8c07e" + "index.js": "ba5def1f397bf7f196a3c5fe6dbaab70b6e8ed57e63bb88caf7de94dd9344007", + "info.json": "dd3dad8a22508b852dac4d691c6378fd1e5e19e88b0a8beb2037920113a246f0" }, - "signature": "Tc7RP33+/gT+srwWEYgTlLWiS5hXXS3EJ43cielvEY3d7FDAMw676ex9jLEuQbPrNrhkBAcscRAAkSil5EEZ4o4ketyhpmepWgVr8AJxbiGE5IkVuTAZIZq82apjkNB7Qbfx99rzB4rtFgvdf0G7wDNMIm62l9+XQ7ThSw+4lBcDIUO6i9yc4YRrjigAtvENk7d9Q3E+cBjH2AuVgQTrap1Q5LUetIjYT+2U+ue3CAy6t2Q+seWeuTWoXkSa6m6d0amvnstLz1+ERAWoQ1QXVTwEemtfRwwQ9k3pVFlWBucK4Zg1BHRHMv4vPSOfuBrsdvmYBUzZa/fjZhd07GvYRQ==" + "signature": "T9chTSt0On8i+szu/bmf4Jsi8Woi/rKTWFRVdHC21o0zWkst3DRI6Sx5nfPs6jHXE5PKXaN/WU/NDf2ObDA6t9RB4V51CNiGs+OpCRZMa4UA2h1e35q9WiAq2qhXyew+LuWFGbmchSxYctTICYZWEClb4d0TsArkV2q/G/eV5mgPrGDs7ZDd8pYvWxED7MyjW7Py/PsMX9OVg4l0sgyL2+qghb0BxX7ze6vsSFLl0jWZQY+NFZQB/v4RmG/RYmYn4HmDMJDbo5VGduezBBrWj164zli+Vq3Kf+ufoIxXV1rhUcYf+C+DF3qMEtgM6NTiDCaUhRNBj2c8q6uvnyEtIA==" } \ No newline at end of file