From 9ac8bc28ede89f0c67582f9031c3fe9b871e32f4 Mon Sep 17 00:00:00 2001 From: zadam Date: Sat, 29 Oct 2022 14:40:53 +0200 Subject: [PATCH] rename saveCroppedScreenshot --- background.js | 2 +- content.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/background.js b/background.js index 88f75fe69..ade9e9476 100644 --- a/background.js +++ b/background.js @@ -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); diff --git a/content.js b/content.js index 64015fae4..7bda9b940 100644 --- a/content.js +++ b/content.js @@ -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 } }); }