Skip to content

Commit

Permalink
style: fix prettier issues
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <[email protected]>
  • Loading branch information
meteyou committed Sep 5, 2024
1 parent 562dd1c commit 2d58b9f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/webcams/streamers/Mjpegstreamer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

<script lang="ts">
import Component from 'vue-class-component'
import {Mixins, Prop, Ref, Watch} from 'vue-property-decorator'
import { Mixins, Prop, Ref, Watch } from 'vue-property-decorator'
import BaseMixin from '@/components/mixins/base'
import {GuiWebcamStateWebcam} from '@/store/gui/webcams/types'
import { GuiWebcamStateWebcam } from '@/store/gui/webcams/types'
import WebcamMixin from '@/components/mixins/webcam'
const CONTENT_LENGTH = 'content-length'
Expand All @@ -33,13 +33,13 @@ const SOI = new Uint8Array(2)
SOI[0] = 0xff
SOI[1] = 0xd8
function uint8ArrayToBase64(uint8Array) {
let binary = '';
const len = uint8Array.byteLength;
function uint8ArrayToBase64(uint8Array: Uint8Array) {
let binary = ''
const len = uint8Array.byteLength
for (let i = 0; i < len; i++) {
binary += String.fromCharCode(uint8Array[i]);
binary += String.fromCharCode(uint8Array[i])
}
return window.btoa(binary);
return window.btoa(binary)
}
@Component
Expand Down

0 comments on commit 2d58b9f

Please sign in to comment.