mirror of
https://github.com/Jonnyan404/memos-bber.git
synced 2026-04-25 03:58:37 +09:00
2023.03.25
This commit is contained in:
+7
-5
@@ -2,12 +2,14 @@ chrome.runtime.onInstalled.addListener(() => {
|
||||
chrome.contextMenus.create(
|
||||
{
|
||||
type: 'normal',
|
||||
title: '发送 “%s” 至 Memos ',
|
||||
title: chrome.i18n.getMessage("sendTo") + '“%s”',
|
||||
id: 'Memos-send',
|
||||
contexts: ['all']
|
||||
},
|
||||
)
|
||||
})
|
||||
chrome.contextMenus.onClicked.addListener(info => {
|
||||
chrome.storage.sync.set({open_action: "save_text",open_content:info.selectionText});
|
||||
})
|
||||
})
|
||||
let tempCont=''
|
||||
chrome.contextMenus.onClicked.addListener(info => {
|
||||
tempCont += info.selectionText + '\n'
|
||||
chrome.storage.sync.set({open_action: "save_text",open_content:tempCont});
|
||||
})
|
||||
Reference in New Issue
Block a user