Skip to content

Commit

Permalink
removed http literals to keep chrome store happy
Browse files Browse the repository at this point in the history
  • Loading branch information
jacamera committed Aug 10, 2021
1 parent 709e60d commit 92b2482
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/common/components/MarkdownDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default (
<td><strong>bold</strong></td>
</tr>
<tr>
<td>[link](http://link.com)</td>
<td>[link](https://link.com)</td>
<td><span className="link">link</span></td>
</tr>
<tr>
Expand Down
4 changes: 2 additions & 2 deletions src/common/contentParsing/processLazyImages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ export default function procesLazyImages(strategy?: LazyImageStrategy): void {
.from(figure.getElementsByTagName('img'))
.forEach(
img => {
if (img.src.startsWith('http://static.nautil.us/')) {
img.src = img.src.replace('http://static.nautil.us/', 'https://d3chnh8fr629l6.cloudfront.net/');
if (img.src.match(/https?:\/\/static\.nautil\.us\//)) {
img.src = img.src.replace(/https?:\/\/static\.nautil\.us\//, 'https://d3chnh8fr629l6.cloudfront.net/');
}
}
);
Expand Down

0 comments on commit 92b2482

Please sign in to comment.