File tree 4 files changed +9
-7
lines changed
src/components/VideoCapture
4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 27
27
"styles" : [
28
28
" src/styles.css"
29
29
],
30
- "scripts" : []
30
+ "scripts" : [],
31
+ "baseHref" : " ./"
31
32
},
32
33
"configurations" : {
33
34
"production" : {
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " dbrjs-react-sample" ,
2
+ "name" : " dbrjs-react-hook- sample" ,
3
3
"version" : " 0.1.0" ,
4
4
"private" : true ,
5
+ "homepage" : " ./" ,
5
6
"dependencies" : {
6
7
"@testing-library/jest-dom" : " ^5.17.0" ,
7
8
"@testing-library/react" : " ^13.4.0" ,
Original file line number Diff line number Diff line change @@ -86,11 +86,10 @@ function VideoCapture() {
86
86
alert ( errMsg ) ;
87
87
}
88
88
}
89
+ // Resolve pInit promise once initialization is complete.
90
+ resolveInit ! ( ) ;
89
91
} ) ( ) ;
90
92
91
- // Resolve pInit promise once initialization is complete.
92
- resolveInit ! ( ) ;
93
-
94
93
// componentWillUnmount. dispose cvRouter when it's no longer needed
95
94
return async ( ) => {
96
95
isDestroyed = true ;
@@ -99,13 +98,13 @@ function VideoCapture() {
99
98
await pInit ;
100
99
cvRouter ?. dispose ( ) ;
101
100
cameraEnhancer ?. dispose ( ) ;
102
- } catch ( _ ) { }
101
+ } catch ( _ ) { }
103
102
} ;
104
103
} , [ ] ) ;
105
104
106
105
return (
107
106
< div >
108
- < div ref = { cameraViewContainer } style = { { width : "100%" , height : "70vh" } } > </ div >
107
+ < div ref = { cameraViewContainer } style = { { width : "100%" , height : "70vh" } } > </ div >
109
108
< br />
110
109
Results:
111
110
< div ref = { resultsContainer } className = "results" > </ div >
Original file line number Diff line number Diff line change 2
2
"name" : " dbrjs-react-sample" ,
3
3
"version" : " 0.1.0" ,
4
4
"private" : true ,
5
+ "homepage" : " ./" ,
5
6
"dependencies" : {
6
7
"@testing-library/jest-dom" : " ^5.17.0" ,
7
8
"@testing-library/react" : " ^13.4.0" ,
You can’t perform that action at this time.
0 commit comments