Skip to content

Commit

Permalink
fix: use current origin for relative camera URLs (#1145)
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <[email protected]>
  • Loading branch information
pedrolamas authored Aug 11, 2023
1 parent b7f9138 commit be693c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mixins/camera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default class CameraMixin extends Vue {
}

buildAbsoluteUrl (url: string) {
const { origin } = new URL(this.apiUrl)
const { origin } = new URL(document.URL)

return new URL(url, origin)
}
Expand Down

0 comments on commit be693c3

Please sign in to comment.