Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var usersfromarray = strArray[2];//from a callback, not working
- console.log(usersfromarray)//this writes 792-1816vh1,792-1816vh2
- var users='792-1816vh1','792-1816vh2'//this is hardcoded in the js file.
- var pushtext="Some text..."
- var tid="now"
- var str='792-1816vh1,792-1816vh2';
- var res='';
- str.split(',').forEach(function(elem) {
- res += "'" + elem + "',";
- });
- // remove last ","
- res = res.substring(0, res.length-1);
- console.log(res);//this writes '792-1816vh1','792-1816vh2'
- skickaPushnotiser([[pushtext,tid],users]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement