mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-10-26 17:41:34 +08:00
rename saveCroppedScreenshot
This commit is contained in:
parent
252263de38
commit
9ac8bc28ed
@ -6,7 +6,7 @@ chrome.commands.onCommand.addListener(async function (command) {
|
||||
await saveWholePage();
|
||||
} else if (command == "saveTabs") {
|
||||
await saveTabs();
|
||||
} else if (command == "saveScreenshot") {
|
||||
} else if (command == "saveCroppedScreenshot") {
|
||||
const activeTab = await getActiveTab();
|
||||
|
||||
await saveCroppedScreenshot(activeTab.url);
|
||||
|
||||
@ -228,7 +228,7 @@ async function prepareMessageResponse(message) {
|
||||
|
||||
if (message.noteId) {
|
||||
messageText = document.createElement('p');
|
||||
messageText.setAttribute("style", "padding: 0; margin: 0")
|
||||
messageText.setAttribute("style", "padding: 0; margin: 0; font-size: larger;")
|
||||
messageText.appendChild(document.createTextNode(message.message + " "));
|
||||
messageText.appendChild(createLink(
|
||||
{name: 'openNoteInTrilium', noteId: message.noteId},
|
||||
@ -253,7 +253,7 @@ async function prepareMessageResponse(message) {
|
||||
|
||||
showToast(messageText, {
|
||||
settings: {
|
||||
duration: 5000
|
||||
duration: 7000
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user