Skip to content

Commit

Permalink
fix: use the correct endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Apr 17, 2020
1 parent 298acad commit d9012c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/use-screenshot-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const getCardUrl = ({ queryVariables }) => {
// if (!endpoint) return shortenUrl + encodeURIComponent(getUrl())
return getScreenshotUrl(getUrl(), {
force: !!isDev,
endpoint: endpoint || 'http://localhost:3000',
endpoint: isDev ? 'http://localhost:3000' : endpoint,
adblock: false,
element: '#screenshot',
embed: 'screenshot.url',
Expand Down

0 comments on commit d9012c0

Please sign in to comment.