xi-conversations

Minimal clone of thunderbird conversations
git clone https://git.ce9e.org/xi-conversations.git

commit
258c856e7d9d412686d0691b8e519131cb961828
parent
3b55be15fb628d67d5fd15b5c3732f19fd66aa3f
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2021-08-23 20:37
rm unnecessary setup()

Diffstat

M background.js 2 --
M experiment-api/api.js 4 ----
M experiment-api/schema.json 4 ----

3 files changed, 0 insertions, 10 deletions


diff --git a/background.js b/background.js

@@ -1,7 +1,5 @@
    1     1 /* global browser */
    2     2 
    3    -1 browser.xi.setup();
    4    -1 
    5     3 browser.xi.onOpenTab.addListener(uris => {
    6     4 	browser.tabs.create({url: '/content/main.html?uris=' + encodeURIComponent(uris)});
    7     5 });

diff --git a/experiment-api/api.js b/experiment-api/api.js

@@ -90,10 +90,6 @@ var xi = class extends ExtensionCommon.ExtensionAPI {
   90    90 
   91    91 		return {
   92    92 			xi: {
   93    -1 				setup() {
   94    -1 					var manifestURI = Services.io.newURI('manifest.json', null, this.extension.rootURI);
   95    -1 					aomStartup.registerChrome(manifestURI, [['content', 'xi-conversations', 'content/']]);
   96    -1 				},
   97    93 				getConversation(uris) {
   98    94 					// https://bugzilla.mozilla.org/show_bug.cgi?id=1665676
   99    95 					return getConversation(uris.map(uri2msg)).then(results => results.map(glodaMsg2msg));

diff --git a/experiment-api/schema.json b/experiment-api/schema.json

@@ -1,10 +1,6 @@
    1     1 [{
    2     2 	"namespace": "xi",
    3     3 	"functions": [{
    4    -1 		"name": "setup",
    5    -1 		"type": "function",
    6    -1 		"parameters": []
    7    -1 	}, {
    8     4 		"name": "getConversation",
    9     5 		"type": "function",
   10     6 		"async": true,