File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /*
2+ * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
3+ * SPDX-License-Identifier: AGPL-3.0-or-later
4+ */
5+
6+ declare global {
7+ interface Window {
8+ _notify_push_listeners : { [ event : string ] : ( ( string , any ) => void ) [ ] } ,
9+ _notify_push_ws : WebSocket | null | true ,
10+ _notify_push_online : boolean ,
11+ _notify_push_available : boolean ,
12+ _notify_push_error_count : number ,
13+ _notify_push_ready : boolean ,
14+ }
15+ }
16+
17+ export { }
Original file line number Diff line number Diff line change 1- /**
1+ /*
22 * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
33 * SPDX-License-Identifier: AGPL-3.0-or-later
44 */
5+
56import { getCapabilities } from '@nextcloud/capabilities' ;
67import axios from '@nextcloud/axios'
78import { subscribe } from '@nextcloud/event-bus'
89
9- declare global {
10- interface Window {
11- _notify_push_listeners : { [ event : string ] : ( ( string , any ) => void ) [ ] } ,
12- _notify_push_ws : WebSocket | null | true ,
13- _notify_push_online : boolean ,
14- _notify_push_available : boolean ,
15- _notify_push_error_count : number ,
16- _notify_push_ready : boolean ,
17- }
18- }
19-
2010type NotifyPushOptions = {
2111 credentials ?: {
2212 username : string ,
You can’t perform that action at this time.
0 commit comments