mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-30 10:36:35 +02:00
Clipper: Fixes #1990: Clipper was not saving page URL when taking screenshot
This commit is contained in:
parent
a6f190766c
commit
4af8bb8e8d
@ -57,6 +57,7 @@ browser_.runtime.onMessage.addListener(async (command) => {
|
||||
const imageDataUrl = await browserCaptureVisibleTabs(null);
|
||||
const content = Object.assign({}, command.content);
|
||||
content.image_data_url = imageDataUrl;
|
||||
if ('url' in content) content.source_url = content.url;
|
||||
|
||||
const newArea = Object.assign({}, command.content.crop_rect);
|
||||
newArea.x *= zoom;
|
||||
|
@ -433,7 +433,7 @@
|
||||
const content = {
|
||||
title: pageTitle(),
|
||||
crop_rect: selectionArea,
|
||||
url: pageLocationOrigin() + location.pathname,
|
||||
url: pageLocationOrigin() + location.pathname + location.search,
|
||||
parent_id: command.parent_id,
|
||||
tags: command.tags,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user