Skip to content

Commit ff25b5e

Browse files
committed
refactor: 增加平台支持逻辑
1 parent bd0e46c commit ff25b5e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/components/BootstrapBlazor.PdfViewer/PdfViewer.razor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export async function init(id, invoke, options) {
66

77
if (!navigator.pdfViewerEnabled) {
88
await invoke.invokeMethodAsync(options.notSupportCallback);
9+
return;
910
}
1011

1112
const el = document.getElementById(id);

0 commit comments

Comments
 (0)