Skip to content

Instantly share code, notes, and snippets.

@oeddyo
Created February 24, 2014 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oeddyo/9198349 to your computer and use it in GitHub Desktop.
Save oeddyo/9198349 to your computer and use it in GitHub Desktop.
Error in response to storage.get: TypeError: undefined is not a function
at process (chrome-extension://glfeiaclnnengimjmnoigoppoedcnoeo/content.js:119:26)
at HTMLDocument.<anonymous> (chrome-extension://glfeiaclnnengimjmnoigoppoedcnoeo/content.js:170:5)
at jQuery.Callbacks.fire (chrome-extension://glfeiaclnnengimjmnoigoppoedcnoeo/jquery-1.11.0.js:3099:30)
at Object.jQuery.Callbacks.self.fireWith [as resolveWith] (chrome-extension://glfeiaclnnengimjmnoigoppoedcnoeo/jquery-1.11.0.js:3211:7)
at Function.jQuery.extend.ready (chrome-extension://glfeiaclnnengimjmnoigoppoedcnoeo/jquery-1.11.0.js:3423:13)
at completed (chrome-extension://glfeiaclnnengimjmnoigoppoedcnoeo/jquery-1.11.0.js:3453:10) extensions::sendRequest:26
safeCallbackApply extensions::sendRequest:26
handleResponse
process = function (callback) {
chrome.storage.local.get('machine-id', function (item) {
storedMacId = item['machine-id'];
if (!storedMacId) {
//storedMacId = getIdFromServer()
storedMacId = guid();
chrome.storage.local.set({'machine-id': storedMacId});
}
console.log("user_id = " + storedMacId)
macId = storedMacId;
dataRecord['user_id'] = storedMacId
callback()
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment