Skip to content

Commit 4eebaad

Browse files
committed
refactor: 移除 async 关键字
1 parent a01c9c6 commit 4eebaad

File tree

1 file changed

+1
-1
lines changed
  • src/BootstrapBlazor/wwwroot/modules

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/wwwroot/modules/media.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export async function getPreviewUrl() {
154154
return url;
155155
}
156156

157-
export async function getPreviewData() {
157+
export function getPreviewData() {
158158
const media = registerBootstrapBlazorModule("MediaDevices");
159159
return media.previewBlob;
160160
}

0 commit comments

Comments
 (0)