Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
fix(preview): keep protocol in 'images.weserv.nl' request
Browse files Browse the repository at this point in the history
  • Loading branch information
VChet committed Mar 21, 2021
1 parent 9499069 commit 452b229
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion client/src/mixins.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ dayjs.extend(relativeTime);
export default {
methods: {
compressImage(url) {
url = url.replace(/^https?:\/\//i, '');
return `https://images.weserv.nl/?url=${url}&w=300&h=300&q=60`;
},
pluralize(num, noun, suffix = 's') {
Expand Down

0 comments on commit 452b229

Please sign in to comment.