1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-09 17:45:02 +09:00

add url to BlockPaste and BlockPreview commands

This commit is contained in:
Andrew Simachev 2024-02-08 11:30:48 +01:00
parent 5fd6bb7326
commit 97efe59182
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8
8 changed files with 25 additions and 14 deletions

View file

@ -134,11 +134,7 @@
};
sendToActiveTab = async (msg) => {
const tab = await getActiveTab();
console.log('[sendToActiveTab]', tab, msg);
await sendToTab(tab, msg);
await sendToTab(await getActiveTab(), msg);
};
sendToTab = async (tab, msg) => {
@ -146,6 +142,8 @@
return;
};
msg.url = tab.url;
const response = await chrome.tabs.sendMessage(tab.id, msg);
console.log('[sendToTab]', tab, msg, response);