Skip to content

Commit

Permalink
appending prod url
Browse files Browse the repository at this point in the history
  • Loading branch information
koustov committed Aug 14, 2022
1 parent bd6311e commit 90f354f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/utils/playsUtil.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
*
* @param path cover path
* @returns absolute url for cover image
* @returns absolute url for cover image for production build
*/
export const getLocalPlayCoverURL = (path) => {
return `${window.location.protocol}//${window.location.hostname}${path}`;
export const getProdUrl = (path) => {
return `https://reactplay.io${path}`;
};

0 comments on commit 90f354f

Please sign in to comment.