Skip to content

Commit a5a9a75

Browse files
committed
fix change default page not working
1 parent 3510d76 commit a5a9a75

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ <h6 id="new-feature-title" class="rest"></h6>
401401
});
402402

403403
//switch default page to other pages
404-
if (!store.get("just-back"))
404+
if (!store.get("just-back")) {
405405
switch (store.get("default-page")) {
406406
case 0:
407407
break;
@@ -414,6 +414,9 @@ <h6 id="new-feature-title" class="rest"></h6>
414414
default:
415415
break;
416416
}
417+
} else {
418+
store.set("just-back", false);
419+
}
417420

418421
function sumGet(timeCount) {
419422
// the unit of timeCount is minute

supporter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function isInDark() {
7777
'#settings-container input[type="text"], #settings-container input[type="number"], #settings-container input[type="password"], #settings-container input[type="text"], #extend-form input, #settings-container .dropdown .btn, #dropdown-menu-button {border-bottom-color: #cccccc23 !important; color: #aaaaaa;} ' +
7878
'.work {color: #ea5454 !important;} ' +
7979
'.rest {color: #5490ea !important;}' +
80-
'.text-info {color: #17a2b8 !important;} ' +
80+
'.text-info, .work.positive {color: #17a2b8 !important;} ' +
8181
'input[type="text"]:focus, input[type="number"]:focus, input[type="password"]:focus, #settings-container input[type="text"]:focus, #settings-container input[type="number"]:focus, #settings-container .dropdown .btn:focus, #dropdown-menu-button:focus {border-bottom-color: #cccccc33 !important;} ' +
8282
'input[type="text"]:hover, input[type="number"]:hover, input[type="password"]:hover, #settings-container input[type="text"]:hover, #settings-container input[type="number"]:hover, #settings-container .dropdown .btn:hover, #dropdown-menu-button:hover {border-bottom-color: #cccccc28 !important;} ' +
8383
'.hotkey-setting {color: #aaaaaa;} ' +

0 commit comments

Comments
 (0)