File: implementation.js

package info (click to toggle)
thunderbird-mobile-config 0.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,724 kB
  • sloc: javascript: 277; makefile: 62; sh: 59; xml: 17
file content (19 lines) | stat: -rwxr-xr-x 509 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Copyright 2020-2024 Dillinger
 * Copyright 2024-2025 Dylan Van Assche
 * SPDX-License-Identifier: GPL-3.0
 */

var { ExtensionCommon } = ChromeUtils.importESModule("resource://gre/modules/ExtensionCommon.sys.mjs");

var mobileConfigApi = class extends ExtensionCommon.ExtensionAPI {
  getAPI(context) {
    return {
      mobileConfigApi: {
        async toggleFolderPane() {
          Services.wm.getMostRecentWindow("mail:3pane").goDoCommand('cmd_toggleFolderPane');
        },
      },
    };
  }
};