mirror of
https://github.com/lil-org/tokenary.git
synced 2024-12-14 14:40:20 +03:00
Remove TODOs
This commit is contained in:
parent
5341563237
commit
b97ffc62d0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user