Skip to content

Commit 792568a

Browse files
committed
refactor: 增加异步支持
1 parent d522b6f commit 792568a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • src/components/BootstrapBlazor.HikVision/wwwroot

src/components/BootstrapBlazor.HikVision/wwwroot/hikvision.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ const hackJSDestroyPlugin = function () {
8686
JSVideoPlugin = null;
8787
delete window.JSVideoPlugin;
8888
removePlugin();
89+
90+
return new Promise((resolve, reject) => {
91+
resolve();
92+
});
8993
}
9094
}
9195

0 commit comments

Comments
 (0)