Skip to content

Commit

Permalink
fix codefactor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Nov 29, 2022
1 parent 1c96254 commit b195de7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/home/previews/video.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Flex, VStack, Image, Text, Anchor, Tooltip } from "@hope-ui/solid"
import { Box, Flex, VStack, Image, Anchor, Tooltip } from "@hope-ui/solid"
import { For, onCleanup, onMount } from "solid-js"
import { useRouter, useLink } from "~/hooks"
import { getSettingBool, objStore } from "~/store"
Expand Down Expand Up @@ -89,7 +89,7 @@ const Preview = () => {
flvPlayer.load()
},
m3u8: function (video: HTMLMediaElement, url: string) {
var hls = new Hls()
const hls = new Hls()
hls.loadSource(url)
hls.attachMedia(video)
},
Expand Down

0 comments on commit b195de7

Please sign in to comment.