fune/devtools/client/scratchpad/scratchpad-commands.js
Mark Banner 34a483b76d Bug 1451659 - Automated ESLint fixes for devtools/client/scratchpad/. r=jdescottes
MozReview-Commit-ID: ACluPVPspsQ

--HG--
extra : rebase_source : 473724688611bbda178cd3b58859dba3e9f41570
2018-04-05 08:01:09 +01:00

22 lines
698 B
JavaScript

/* 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 l10n = require("gcli/l10n");
const {Cu} = require("chrome");
exports.items = [{
item: "command",
runAt: "client",
name: "scratchpad",
buttonId: "command-button-scratchpad",
buttonClass: "command-button",
tooltipText: l10n.lookup("scratchpadOpenTooltip"),
hidden: true,
exec: function(args, context) {
const {ScratchpadManager} = require("resource://devtools/client/scratchpad/scratchpad-manager.jsm");
ScratchpadManager.openScratchpad();
}
}];