Commit fa9c13f
authored
[tfjs-data] Use '!IS_BROWSER' instead of 'IS_NODE' for detecting browser (#6240)
Make webcam and microphone iterators check the IS_BROWSER flag instead of the IS_NODE flag when checking environment compatability. This is more accurate because some browsers, like Electron, look like node but still have all the browser features required for webcams and microphones.1 parent ab58c26 commit fa9c13f
File tree
2 files changed
+2
-2
lines changed- tfjs-data/src/iterators
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
0 commit comments