Skip to content

Commit 3557109

Browse files
committed
Increase update check interval to 24 hours
- lower frequency of update checks to once per day ├── apps │ └── editor │ └── src │ └── views │ └── prompt │ └── frontend │ ├── Home │ │ └── Home.tsx │ ├── Main │ │ ├── Main.tsx │ │ └── MainView │ │ ├── MainView.tsx │ │ └── components │ │ └── Header │ │ ├── Header.module.scss │ │ └── Header.tsx │ ├── Prompt.tsx │ └── hooks │ ├── use-alt-pressed.ts │ ├── use-api-configuration-editing.ts │ ├── use-cli-configuration-editing.ts │ ├── use-editor-sync.ts │ ├── use-is-landscape.ts │ ├── use-modal-manager.ts │ ├── use-preview-manager.ts │ ├── use-prompt │ │ ├── hooks │ │ │ └── use-instructions.ts │ │ ├── index.ts │ │ └── use-prompt.ts │ ├── use-recent-donations.ts │ ├── use-response-history.ts │ ├── use-update-check.ts │ └── use-web-configuration-editing.ts └── packages └── ui └── src └── components └── editor └── common └── Button ├── Button.module.scss └── Button.tsx
1 parent 8d0216a commit 3557109

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/editor/src/views/prompt/frontend/hooks/use-update-check.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export type UpdateInfo = {
77
}
88

99
let global_update_info: UpdateInfo = { is_available: false }
10-
const CHECK_INTERVAL = 5 * 60 * 1000
10+
const CHECK_INTERVAL = 24 * 60 * 60 * 1000
1111

1212
const is_newer = (latest: string, current: string) => {
1313
const l = latest.split('.').map(Number)

0 commit comments

Comments
 (0)