Skip to content

Instantly share code, notes, and snippets.

@darkowlzz
Created May 5, 2014 17:50
Show Gist options
  • Save darkowlzz/7a200b1929db71ce3a9f to your computer and use it in GitHub Desktop.
Save darkowlzz/7a200b1929db71ce3a9f to your computer and use it in GitHub Desktop.
add-on details using self
const { uri, id, preferencesBranch, name,
loadReason, version, packed, isPrivate } = require('sdk/self');
console.log('\nuri: ' + uri +
'\nid: ' + id +
'\npreferencesBranch: ' + preferencesBranch +
'\nname: ' + name +
'\nloadReason: ' + loadReason +
'\nversion: ' + version +
'\npacked: ' + packed +
'\nisPrivate' + isPrivate);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment