summaryrefslogtreecommitdiff
path: root/browser/devtools/scratchpad/scratchpad-commands.js
blob: 8bfa0feedf8d779ff86187b1e6d49fbef63e8431 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* 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 gcli = require("gcli/index");

exports.items = [{
  name: "scratchpad",
  buttonId: "command-button-scratchpad",
  buttonClass: "command-button command-button-invertable",
  tooltipText: gcli.lookup("scratchpadOpenTooltip"),
  hidden: true,
  exec: function(args, context) {
    let Scratchpad = context.environment.chromeWindow.Scratchpad;
    Scratchpad.ScratchpadManager.openScratchpad();
  }
}];