mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Disabled Firebase support on NodeJS 23 for now, added warning.
This commit is contained in:
parent
975e49a190
commit
7bd5b66ebc
3 changed files with 31 additions and 9 deletions
|
@ -28,6 +28,10 @@ module.exports.CreateFirebase = function (parent, senderid, serverkey) {
|
|||
receivedBadArgs: 0
|
||||
}
|
||||
|
||||
// In NodeJS v23, add util.isNullOrUndefined() to make node-xcs work correctly.
|
||||
// Remove this when node-xcs moves to support NodeJS v23
|
||||
if (require('util').isNullOrUndefined == null) { require('util').isNullOrUndefined = function (v) { return v == null; } }
|
||||
|
||||
const Sender = require('node-xcs').Sender;
|
||||
const Message = require('node-xcs').Message;
|
||||
const Notification = require('node-xcs').Notification;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue