summaryrefslogtreecommitdiff
path: root/data/extensions/jid1-KtlZuoiikVfFew@jetpack/node_modules/pathfinder/lib/aom/manager.js
blob: cc9388e2cc4ae94dbea5b2cce9eb05999ea875e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
'use strict';

const {AddonManager, AddonManagerPrivate} = require("../utils/addonmanager");
const Addon = require("addon").Addon;

exports.getAddonByID = exports.getAddonById = function(aID, aCallback) {
  // get the addon obj
  AddonManager.getAddonByID(aID, function (addon) {
    // return a wrapped addon
    aCallback(new Addon(addon));
  });
};