Skip to content

Commit

Permalink
fix issue with injecting backend address
Browse files Browse the repository at this point in the history
  • Loading branch information
srimanachanta committed Jul 16, 2023
1 parent e5700ee commit 5812bec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions photon-client/src/components/app/photon-camera-stream.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { computed, inject } from "vue";
import { computed } from "vue";
import { useCameraSettingsStore } from "@/stores/settings/CameraSettingsStore";
import { useStateStore } from "@/stores/StateStore";
import loadingImage from "@/assets/images/loading.svg";
Expand All @@ -17,7 +17,7 @@ const src = computed<string>(() => {
const port = useCameraSettingsStore().currentCameraSettings.stream[props.streamType === "Raw" ? "inputPort" : "outputPort"];
return `http://${inject("backendAddress")}:${port}/stream.mjpg`;
return `http://${location.hostname}:${port}/stream.mjpg`;
});
const alt = computed<string>(() => `${props.streamType} Stream View`);
Expand Down

0 comments on commit 5812bec

Please sign in to comment.