mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-20 23:04:06 +00:00
Simplifies code with tautological condition. The extension is only
loaded when `isCloud` is true due to
38f188759d/src/extensions/core/index.ts (L27-L29)
┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-6106-refactor-simplify-redundant-check-in-cloud-badge-extension-28f6d73d365081d69903f5a985fdc8be)
by [Unito](https://www.unito.io)
13 lines
253 B
TypeScript
13 lines
253 B
TypeScript
import { t } from '@/i18n'
|
|
import { useExtensionService } from '@/services/extensionService'
|
|
|
|
useExtensionService().registerExtension({
|
|
name: 'Comfy.CloudBadge',
|
|
topbarBadges: [
|
|
{
|
|
label: t('g.beta'),
|
|
text: 'Comfy Cloud'
|
|
}
|
|
]
|
|
})
|