mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-21 00:01:26 +08:00
新增未读消息计数和桌面图标徽章更新功能
This commit is contained in:
17
src/types/global.d.ts
vendored
Normal file
17
src/types/global.d.ts
vendored
Normal file
@@ -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