mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
0df1d1fa1e
Differential Revision: https://phabricator.services.mozilla.com/D12478 --HG-- extra : rebase_source : 1a89085a191d3bdda5b49f178644e5766a9fb5c2 extra : amend_source : 0685f35163593b596d50c45567b5d64b68935f04
14 lines
411 B
JavaScript
14 lines
411 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";
|
|
|
|
/* eslint-env webextensions */
|
|
|
|
const Quitter = {
|
|
quit() { browser.runtime.sendMessage("quit"); },
|
|
};
|
|
|
|
window.wrappedJSObject.Quitter = cloneInto(Quitter, window, {cloneFunctions: true});
|