Skip to content

Commit

Permalink
fix: sw.js path
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Feb 11, 2025
1 parent 3333ad7 commit 838a4a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Player.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const Emits = defineEmits(["get-instance"]);
const playMedia = async (player: HTMLMediaElement, url: string, art: any) => {
const p2pConfig: P2pConfigMedia = {
swFile: "sw.media.js",
swFile: "/web/sw.media.js",
p2pEnabled: defaultP2PEnabled.value,
trackerZone: Props.options.p2pZone as TrackerZoneMedia
};
Expand Down Expand Up @@ -255,7 +255,7 @@ const playM3u8 = async (player: HTMLMediaElement, url: string, art: Artplayer) =
const P2pEngineHls = (await import("@swarmcloud/hls")).default;
var p2pConfig: HlsP2pConfig = {
swFile: "sw.js",
swFile: "/web/sw.js",
live: art.option.isLive,
p2pEnabled: defaultP2PEnabled.value,
trackerZone: Props.options.p2pZone as TrackerZoneHls,
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "@vue/tsconfig/tsconfig.dom.json",
"include": ["env.d.ts", "src/**/*","src/**/**/*.vue", "src/**/*.vue","src/**/*.ts"],
"include": ["env.d.ts", "src/**/*","src/**/**/*.vue", "src/**/*.vue","src/**/*.ts", "public/sw.mp4.js", "public/sw.js"],
"exclude": ["src/**/__tests__/*"],
"compilerOptions": {
"composite": true,
Expand Down

0 comments on commit 838a4a5

Please sign in to comment.