mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 07:28:37 +08:00
新增未读消息计数和桌面图标徽章更新功能
This commit is contained in:
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
// PWA Badge API 类型定义
|
||||
declare global {
|
||||
interface Navigator {
|
||||
/**
|
||||
* 设置应用徽章数量
|
||||
* @param contents 要显示的数量,可选
|
||||
*/
|
||||
setAppBadge(contents?: number): Promise<void>
|
||||
|
||||
/**
|
||||
* 清除应用徽章
|
||||
*/
|
||||
clearAppBadge(): Promise<void>
|
||||
}
|
||||
}
|
||||
|
||||
export {}
|
||||
Reference in New Issue
Block a user