Skip to content

Commit 1ccc23f

Browse files
author
QuickSander
committed
fix: Remove deprecated notification server API usage.
1 parent 5395c36 commit 1ccc23f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ function HttpPushRgb(log, config) {
105105
config.switch.notificationID) {
106106
try {
107107
api.notificationRegistration(config.switch.notificationID, this.handleNotification.bind(this), config.switch.notificationPassword);
108+
global.notificationRegistration(config.switch.notificationID, this.handleNotification.bind(this), config.switch.notificationPassword);
109+
108110
} catch (error) {
109111
// notificationID is already taken.
110112
}

0 commit comments

Comments
 (0)