Skip to content

Commit 6489ec4

Browse files
committed
optimize(projects): optimize code
1 parent ac86247 commit 6489ec4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plugins/app.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ export function setupAppErrorHandle(app: App) {
1010
};
1111
}
1212

13-
// Update check interval in milliseconds
14-
const UPDATE_CHECK_INTERVAL = 3 * 60 * 1000;
15-
1613
export function setupAppVersionNotification() {
14+
// Update check interval in milliseconds
15+
const UPDATE_CHECK_INTERVAL = 3 * 60 * 1000;
16+
1717
const canAutoUpdateApp = import.meta.env.VITE_AUTOMATICALLY_DETECT_UPDATE === 'Y' && import.meta.env.PROD;
1818
if (!canAutoUpdateApp) return;
1919

0 commit comments

Comments
 (0)