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:
parent
5fd6bb7326
commit
97efe59182
8 changed files with 25 additions and 14 deletions
8
dist/extension/js/background.js
vendored
8
dist/extension/js/background.js
vendored
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue