Conditions | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import * as core from '../utils/aniwatchCore'; |
||
35 | function findPlayer() { |
||
36 | const PLAYER_TAG_NAME = 'VIDEO'; // tagName gives UpperCase |
||
37 | |||
38 | let playerCandidate = document.getElementById(PLAYER_ID); |
||
39 | if (playerCandidate.tagName === PLAYER_TAG_NAME) { |
||
40 | return playerCandidate; |
||
41 | } |
||
42 | |||
43 | return undefined; |
||
44 | } |
||
45 | |||
48 | } |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.