diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-02-13 11:50:04 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-02-13 11:50:04 +0100 |
commit | 6bb02d95f70000b150569089987701c8244d7d5d (patch) | |
tree | c7e11508f70ee665c3a3a039f7101fd62ad9e47e /application/basilisk/components/webextensions/ext-c-tabs.js | |
parent | 71c81eb900ac3b8a770a4b844771faf335999861 (diff) | |
download | UXP-6bb02d95f70000b150569089987701c8244d7d5d.tar UXP-6bb02d95f70000b150569089987701c8244d7d5d.tar.gz UXP-6bb02d95f70000b150569089987701c8244d7d5d.tar.lz UXP-6bb02d95f70000b150569089987701c8244d7d5d.tar.xz UXP-6bb02d95f70000b150569089987701c8244d7d5d.zip |
Remove webextensions conditional code from Basilisk.
Tag issue #936
Diffstat (limited to 'application/basilisk/components/webextensions/ext-c-tabs.js')
-rw-r--r-- | application/basilisk/components/webextensions/ext-c-tabs.js | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/application/basilisk/components/webextensions/ext-c-tabs.js b/application/basilisk/components/webextensions/ext-c-tabs.js deleted file mode 100644 index d5ce9fbf9..000000000 --- a/application/basilisk/components/webextensions/ext-c-tabs.js +++ /dev/null @@ -1,35 +0,0 @@ -/* -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- */ -/* vim: set sts=2 sw=2 et tw=80: */ -"use strict"; - -extensions.registerSchemaAPI("tabs", "addon_child", context => { - return { - tabs: { - connect: function(tabId, connectInfo) { - let name = ""; - if (connectInfo && connectInfo.name !== null) { - name = connectInfo.name; - } - let recipient = { - extensionId: context.extension.id, - tabId, - }; - if (connectInfo && connectInfo.frameId !== null) { - recipient.frameId = connectInfo.frameId; - } - return context.messenger.connect(context.messageManager, name, recipient); - }, - - sendMessage: function(tabId, message, options, responseCallback) { - let recipient = { - extensionId: context.extension.id, - tabId: tabId, - }; - if (options && options.frameId !== null) { - recipient.frameId = options.frameId; - } - return context.messenger.sendMessage(context.messageManager, message, recipient, responseCallback); - }, - }, - }; -}); |