修复设置开关的错误

This commit is contained in:
woohoo 2022-01-14 00:44:52 +08:00
parent eec9a49f7a
commit a5c7cbc342

View File

@ -15,7 +15,7 @@
___window___.WHTRANS = true; ___window___.WHTRANS = true;
const CC_set = /[\u4e00-\u9fa5]/; const CC_set = /[\u4e00-\u9fa5]/;
const version = '0.2.0114a'; const version = '0.2.0114b';
const changelist = [ const changelist = [
{ {
@ -3797,7 +3797,7 @@ padding: 0.5em 0;
travelOB.observe($('div.content-wrapper')[0], {childList: true, subtree: true}); travelOB.observe($('div.content-wrapper')[0], {childList: true, subtree: true});
} }
// 飞行闹钟 // 飞行闹钟
if (device === 'pc' && wh_trans_settings.energyAlert) elementReady('#countrTravel.hasCountdown').then(node => { if (device === 'pc' && wh_trans_settings.trvAlarm) elementReady('#countrTravel.hasCountdown').then(node => {
const remaining_arr = node.innerText.trim().split(':'); const remaining_arr = node.innerText.trim().split(':');
const wh_trv_alarm = localStorage.getItem('wh_trv_alarm') const wh_trv_alarm = localStorage.getItem('wh_trv_alarm')