导出 openUserInfoDialog openChatInfoDialog 到 window
* 无奈之举
This commit is contained in:
@@ -120,6 +120,10 @@ export default function App() {
|
||||
}
|
||||
userProfileDialogRef.current!.open = true
|
||||
}
|
||||
// deno-lint-ignore no-window
|
||||
window.openUserInfoDialog = openUserInfoDialog
|
||||
// deno-lint-ignore no-window
|
||||
window.openChatInfoDialog = openChatInfoDialog
|
||||
|
||||
if ('Notification' in window) {
|
||||
Notification.requestPermission()
|
||||
|
||||
Reference in New Issue
Block a user