Skip to content

Commit a4b0188

Browse files
authored
feat(HikVision): add auto check jQuery plugin (#777)
1 parent 81099fe commit a4b0188

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
@@ -5,6 +5,10 @@ export async function init(id) {
55
await addScript('./_content/BootstrapBlazor.HikVision/jsVideoPlugin-1.0.0.min.js');
66
await addScript('./_content/BootstrapBlazor.HikVision/webVideoCtrl.js');
77

8+
if (window.$ === void 0) {
9+
await addScript('./_content/BootstrapBlazor.HikVision/jquery-1.7.1.min.js');
10+
}
11+
812
const el = document.getElementById(id);
913
if (el === null) {
1014
return;

0 commit comments

Comments
 (0)