Skip to content

Commit

Permalink
updated setup-node version; fixed duplicate file generated.
Browse files Browse the repository at this point in the history
  • Loading branch information
eric2788 committed Jan 7, 2024
1 parent 994931d commit 7c8c4ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4.0.1
with:
node-version: 20
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4.0.1
with:
node-version: 20
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions src/tabs/stream.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ import {
} from 'media-chrome/dist/react';
import NDanmaku from 'n-danmaku';
import type { ResponseBody as DanmakuBody } from '~background/forwards/danmaku';
import { sendInternal } from '~background/messages';
import type { StreamUrls } from '~background/messages/get-stream-urls';
import BJFThemeProvider from '~components/BJFThemeProvider';
import PromiseHandler from '~components/PromiseHandler';
import { useForwarder } from '~hooks/forwarder';
import loadStream, { type StreamPlayer } from '~players';
import { sendMessager } from '~utils/messaging';

const urlParams = new URLSearchParams(window.location.search);
const roomId = urlParams.get('roomId');
Expand Down Expand Up @@ -203,7 +203,7 @@ function MonitorApp({ urls }: { urls: StreamUrls }): JSX.Element {
function App(): JSX.Element {

const getStreamUrls = useCallback(async () => {
const res = await sendInternal('get-stream-urls', { roomId })
const res = await sendMessager('get-stream-urls', { roomId })
if (res.error) throw new Error(res.error)
return res.data.toSorted((a, b) => b.quality - a.quality)
}, [])
Expand Down

0 comments on commit 7c8c4ba

Please sign in to comment.