Skip to content

Commit

Permalink
MWPW-136414: Add Support for PDF Copy for FG (#1390)
Browse files Browse the repository at this point in the history
  • Loading branch information
sukamat authored Oct 16, 2023
1 parent dac965c commit 1881b0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/floodgate/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function getDocPathFromUrl(url) {
path = path.slice(0, -5);
return `${path}.xlsx`;
}
if (path.endsWith('.svg')) {
if (path.endsWith('.svg') || path.endsWith('.pdf')) {
return path;
}
if (path.endsWith('/')) {
Expand Down
2 changes: 1 addition & 1 deletion tools/loc/fragments.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function isLocalFragment(link, baseUrlOrigin) {
}

function isReferencedAsset(link, baseUrlOrigin) {
return link && link.startsWith(baseUrlOrigin) && link.endsWith('.svg');
return link && link.startsWith(baseUrlOrigin) && (link.endsWith('.svg') || link.endsWith('.pdf'));
}

function getOriginFromLink(link) {
Expand Down

0 comments on commit 1881b0a

Please sign in to comment.