Skip to content

Commit

Permalink
fix(projects): setupAppVersionNotification bug in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma-plus committed Jun 7, 2024
1 parent 230a62d commit a431473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function setupAppVersionNotification() {
document.addEventListener('visibilitychange', async () => {
const buildTime = await getHtmlBuildTime();

if (buildTime !== BUILD_TIME && document.visibilityState === 'visible') {
if (buildTime && buildTime !== BUILD_TIME && document.visibilityState === 'visible') {
const n = window.$notification?.create({
title: $t('system.updateTitle'),
content: $t('system.updateContent'),
Expand Down

0 comments on commit a431473

Please sign in to comment.