We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e087cf commit abcd94bCopy full SHA for abcd94b
src/GCM.js
@@ -26,7 +26,7 @@ function GCM(args) {
26
GCM.prototype.send = function(data, devices) {
27
let pushId = randomString(10);
28
// Make a new array
29
- devices = new Array(...devices);
+ devices=devices.slice(0);
30
let timestamp = Date.now();
31
// For android, we can only have 1000 recepients per send, so we need to slice devices to
32
// chunk if necessary
0 commit comments