Remove TODOs

This commit is contained in:
Ivan Grachyov 2021-12-11 23:39:14 +03:00
parent 5341563237
commit b97ffc62d0

View File

@ -19,7 +19,7 @@ browser.runtime.onMessage.addListener((request, sender, sendResponse) => {
if (request.subject === "closeTab") {
browser.tabs.remove(sender.tab.id);
} else if (request.subject === "process-inpage-message") {
pendingTabIds[request.message.id] = sender.tab.id; // TODO: Would be good not to save on macOS
pendingTabIds[request.message.id] = sender.tab.id;
browser.runtime.sendNativeMessage("mac.tokenary.io", request.message, function(response) {
sendResponse(response)
});
@ -31,7 +31,7 @@ browser.browserAction.onClicked.addListener(function(tab) {
const id = new Date().getTime() + Math.floor(Math.random() * 1000);
const request = {id: id, name: "switchAccount", object: {}, address: "", proxy: true};
browser.tabs.sendMessage(tab.id, request);
pendingTabIds[request.id] = tab.id; // TODO: Would be good not to save on macOS
pendingTabIds[request.id] = tab.id;
// TODO: pass current network id
// TODO: pass favicon
// TODO: pass host here as well