Skip to content

Commit

Permalink
Merge branch 'vite-typescript-refactor' of https://github.com/srimana…
Browse files Browse the repository at this point in the history
…chanta/photonvision into vite-typescript-pinia-refactor
  • Loading branch information
srimanachanta committed Jul 16, 2023
2 parents aed7a6a + 5812bec commit 589d17f
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 589d17f

Please sign in to comment.