Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(desktop): load RTC at the very beginning #1869

Merged
merged 1 commit into from
Mar 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions desktop/renderer-app/src/tasks/init-flat-services.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AgoraRTCElectron } from "@netless/flat-service-provider-agora-rtc-electron";
import { AgoraRTCElectron } from "@netless/flat-service-provider-agora-rtc-electron";
import { FlatServiceProviderFile, FlatServices, Toaster, getFileExt } from "@netless/flat-services";
import { FlatI18n } from "@netless/flat-i18n";
import { FilePreviewPage } from "@netless/flat-pages/src/FilePreviewPage";
Expand Down Expand Up @@ -82,10 +82,6 @@ export function initFlatServices(): void {
);

flatServices.register("videoChat", async () => {
const { AgoraRTCElectron } = await import(
"@netless/flat-service-provider-agora-rtc-electron"
);

const agoraRtcSDK$ = (window as any).agoraRtcSDK$;
if (!agoraRtcSDK$) {
throw new Error("Missing agora rtc electron sdk global");
Expand Down