addons.js 544 B

1234567891011121314151617181920
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. "use strict";
  5. const {Arg, RetVal, generateActorSpec} = require("devtools/shared/protocol");
  6. const addonsSpec = generateActorSpec({
  7. typeName: "addons",
  8. methods: {
  9. installTemporaryAddon: {
  10. request: { addonPath: Arg(0, "string") },
  11. response: { addon: RetVal("json") },
  12. },
  13. },
  14. });
  15. exports.addonsSpec = addonsSpec;