We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdbd944 commit ea981f5Copy full SHA for ea981f5
1 file changed
src/components/BootstrapBlazor.HikVision/wwwroot/hikvision.js
@@ -44,7 +44,21 @@ const hackJSDestroyPlugin = function () {
44
return origianlSendRequestProxy.call(this, r);
45
}
46
47
- return this.oPlugin.JS_DestroyPlugin(true);
+ this.oPlugin.JS_DestroyPlugin(true);
48
+
49
+ JSVideoPlugin = null;
50
+ delete window.JSVideoPlugin;
51
+ removePlugin();
52
+ }
53
+}
54
55
+const removePlugin = () => {
56
+ const scripts = [...document.head.querySelectorAll('script')]
57
+ const nodes = scripts.filter(function (link) {
58
+ return link.src.indexOf('/jsVideoPlugin-1.0.0.min.js') > -1
59
+ })
60
+ for (let index = 0; index < nodes.length; index++) {
61
+ document.head.removeChild(nodes[index])
62
63
64
0 commit comments