Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup #915

Merged
merged 3 commits into from
Sep 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
(fix) lint doesn't like branch assignments
  • Loading branch information
dmx974 committed Sep 22, 2024
commit 9ed8e2c6768db073ee872e8b73e3107fcb5cd9c9
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ watchEffect(() => {
app.workflowManager.workflowStore = workflowStore

onMounted(() => {
window && (window['__COMFYUI_FRONTEND_VERSION__'] = config.app_version)
window['__COMFYUI_FRONTEND_VERSION__'] = config.app_version
console.log('ComfyUI Front-end version:', config.app_version)

api.addEventListener('status', onStatus)
Expand Down
1 change: 0 additions & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export default {
app_title: 'ComfyUI',
// @ts-ignore
app_version: __COMFYUI_FRONTEND_VERSION__
}
6 changes: 6 additions & 0 deletions src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
/// <reference types="vite/client" />

declare global {
interface Window {
__COMFYUI_FRONTEND_VERSION__: string
}
}
Loading