forked from jsnbuchanan/crowd-funder-for-time-pwa
fix image server references for tests (2 tests failing: missing function & looking for registration prompt for unregistered user)
This commit is contained in:
@@ -183,6 +183,14 @@ export default class SharedPhotoView extends Vue {
|
||||
);
|
||||
formData.append("claimType", imageType);
|
||||
|
||||
if (
|
||||
window.location.hostname === "localhost" &&
|
||||
!DEFAULT_IMAGE_API_SERVER.includes("localhost")
|
||||
) {
|
||||
console.log(
|
||||
"Using shared image API server, so only users on that server can play with images.",
|
||||
);
|
||||
}
|
||||
const response = await axios.post(
|
||||
DEFAULT_IMAGE_API_SERVER + "/image",
|
||||
formData,
|
||||
|
||||
Reference in New Issue
Block a user