fix image server references for tests (2 tests failing: missing function & looking for registration prompt for unregistered user)

This commit is contained in:
2025-02-16 09:11:28 -07:00
parent cc71d383e6
commit 898821c9aa
17 changed files with 137 additions and 106 deletions

View File

@@ -357,6 +357,14 @@ export default class NewEditProjectView extends Vue {
}
try {
const headers = (await getHeaders(this.activeDid)) as AxiosRequestHeaders;
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 this.axios.delete(
DEFAULT_IMAGE_API_SERVER +
"/image/" +