Add ACE-Step music generation to the studio and library.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -52,12 +52,16 @@ export async function ensureGenerationNotifyPermission() {
|
||||
}
|
||||
}
|
||||
|
||||
export async function notifyGenerationComplete(kind: 'video' | 'image' = 'video') {
|
||||
export async function notifyGenerationComplete(kind: 'video' | 'image' | 'music' = 'video') {
|
||||
if (!generationNotifySupported() || !generationNotifyPref()) return
|
||||
if (Notification.permission !== 'granted') return
|
||||
if (typeof document !== 'undefined' && !document.hidden && document.hasFocus()) return
|
||||
const title = appName()
|
||||
const body = kind === 'image' ? 'Image generation is complete.' : 'Generation is complete.'
|
||||
const body = kind === 'image'
|
||||
? 'Image generation is complete.'
|
||||
: kind === 'music'
|
||||
? 'Music generation is complete.'
|
||||
: 'Generation is complete.'
|
||||
const options: NotificationOptions = {
|
||||
body,
|
||||
icon: appIcon(),
|
||||
|
||||
Reference in New Issue
Block a user