Skip to content

Commit

Permalink
fix change default page not working
Browse files Browse the repository at this point in the history
  • Loading branch information
RoderickQiu committed Jan 24, 2025
1 parent 3510d76 commit a5a9a75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ <h6 id="new-feature-title" class="rest"></h6>
});

//switch default page to other pages
if (!store.get("just-back"))
if (!store.get("just-back")) {
switch (store.get("default-page")) {
case 0:
break;
Expand All @@ -414,6 +414,9 @@ <h6 id="new-feature-title" class="rest"></h6>
default:
break;
}
} else {
store.set("just-back", false);
}

function sumGet(timeCount) {
// the unit of timeCount is minute
Expand Down
2 changes: 1 addition & 1 deletion supporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function isInDark() {
'#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;} ' +
'.work {color: #ea5454 !important;} ' +
'.rest {color: #5490ea !important;}' +
'.text-info {color: #17a2b8 !important;} ' +
'.text-info, .work.positive {color: #17a2b8 !important;} ' +
'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;} ' +
'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;} ' +
'.hotkey-setting {color: #aaaaaa;} ' +
Expand Down

0 comments on commit a5a9a75

Please sign in to comment.