The problem is: electron env includes and browser and nodejs together. Therefore, both isBrowser and isNodejs function will return true. The comment in the code mentions, that isBrowser is explictly called first to prevent electron renderer process to be initialized with wrong environment due to isNodejs() returning true. But current code (before the change) executes both isBrowser and isNodejs blocks. This commit resolves the issue.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| ageGenderNet | Loading commit data... | |
| classes | Loading commit data... | |
| common | Loading commit data... | |
| dom | Loading commit data... | |
| draw | Loading commit data... | |
| env | Loading commit data... | |
| faceExpressionNet | Loading commit data... | |
| faceFeatureExtractor | Loading commit data... | |
| faceLandmarkNet | Loading commit data... | |
| faceProcessor | Loading commit data... | |
| faceRecognitionNet | Loading commit data... | |
| factories | Loading commit data... | |
| globalApi | Loading commit data... | |
| mtcnn | Loading commit data... | |
| ops | Loading commit data... | |
| ssdMobilenetv1 | Loading commit data... | |
| tinyFaceDetector | Loading commit data... | |
| tinyYolov2 | Loading commit data... | |
| utils | Loading commit data... | |
| xception | Loading commit data... | |
| NeuralNetwork.ts | Loading commit data... | |
| euclideanDistance.ts | Loading commit data... | |
| index.ts | Loading commit data... | |
| resizeResults.ts | Loading commit data... |