toolbar.js 804 B

123456789101112131415161718192021222324252627
  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. module.metadata = {
  6. "stability": "experimental",
  7. "engines": {
  8. "Firefox": "> 28"
  9. }
  10. };
  11. // Because Firefox Holly, we still need to check if `CustomizableUI` is
  12. // available. Once Australis will officially land, we can safely remove it.
  13. // See Bug 959142
  14. try {
  15. require("chrome").Cu.import("resource:///modules/CustomizableUI.jsm", {});
  16. }
  17. catch (e) {
  18. throw Error("Unsupported Application: The module" + module.id +
  19. " does not support this application.");
  20. }
  21. const { Toolbar } = require("./toolbar/model");
  22. require("./toolbar/view");
  23. exports.Toolbar = Toolbar;