Skip to content

Commit

Permalink
Clipper: Fixes #1990: Clipper was not saving page URL when taking scr…
Browse files Browse the repository at this point in the history
…eenshot
  • Loading branch information
laurent22 committed Nov 7, 2019
1 parent a6f1907 commit 4af8bb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Clipper/joplin-webclipper/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion Clipper/joplin-webclipper/content_scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 4af8bb8

Please sign in to comment.