I'm trying to make a callback function, and i can't find a solution to pass an argument in this callback ..
var chrome = {
enterprise: {
deviceAttributes: {
getDirectoryDeviceId: function() {
return "test";
}
}
}
};
chrome.enterprise.deviceAttributes.getDirectoryDeviceId(function(deviceid) {
alert(deviceid);
});
How can the deviceid in the callback function be "xxx" ?
Many thanks