File tree Expand file tree Collapse file tree
src/components/BootstrapBlazor.HikVision Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk.Razor" >
22
33 <PropertyGroup >
4- <Version >10.0.0-beta06 </Version >
4+ <Version >10.0.0</Version >
55 </PropertyGroup >
66
77 <PropertyGroup >
Original file line number Diff line number Diff line change @@ -44,7 +44,21 @@ const hackJSDestroyPlugin = function () {
4444 return origianlSendRequestProxy . call ( this , r ) ;
4545 }
4646 }
47- return this . oPlugin . JS_DestroyPlugin ( true ) ;
47+ 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 ] )
4862 }
4963}
5064
You can’t perform that action at this time.
0 commit comments