Skip to content

Commit

Permalink
fix(projects): hide AppVersionNotification in DEV mode (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma-plus committed Jun 7, 2024
1 parent 22004ff commit 6259287
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 (!import.meta.env.DEV && 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 6259287

Please sign in to comment.