37 this.maps = await axios.get('https://valorant-api.com/v1/maps').then(res => res.data.data);
38
39 let interval = setInterval(async () => {
40 this.language = store.get("language") || "tr_TR"; 41 if (!this.isReady) {
42 clearInterval(interval);
43 return;
15 this.maps = null;
16 this.presence = null;
17 this.isReady = false;
18 this.language = store.get("language") || "tr_TR"; 19 this.eventHandler();
20 }
21
environment
array of .deepsource.toml
. Read more in our documentation https://deepsource.io/docs/analyzer/javascript25 $('#discordStatus').text(translate(language, "open_discord"));
26 }
27
28 $('#statusTitle').text(translate(language, "status"))29 $('#active').text(translate(language, "active"))
30 $('#deactive').text(translate(language, "disable"))
31 $('#select-language').text(translate(language, "select_language"))
environment
array of .deepsource.toml
. Read more in our documentation https://deepsource.io/docs/analyzer/javascript26 }
27
28 $('#statusTitle').text(translate(language, "status"))
29 $('#active').text(translate(language, "active"))30 $('#deactive').text(translate(language, "disable"))
31 $('#select-language').text(translate(language, "select_language"))
32
environment
array of .deepsource.toml
. Read more in our documentation https://deepsource.io/docs/analyzer/javascript27
28 $('#statusTitle').text(translate(language, "status"))
29 $('#active').text(translate(language, "active"))
30 $('#deactive').text(translate(language, "disable"))31 $('#select-language').text(translate(language, "select_language"))
32
33 if (message.valorant?.status && message.discord?.status) {
Variables that aren't defined, but accessed may throw reference errors at runtime.
NOTE: In browser applications, DeepSource recommends the use of ESModules over regular
text/javascript
scripts. Using variables that are injected by scripts included in an HTML file is currently not supported.
Potential ReferenceError
s may result from misspellings of variable and parameter names, or accidental implicit globals (for example, forgetting the var
keyword in a for
loop initializer).
Any reference to an undeclared variable causes a warning, unless the variable is explicitly mentioned in a /*global ...*/
comment, or specified in the globals key in the ESLint configuration file.
A common use case for these is if you intentionally use globals that are defined elsewhere (e.g. in a script sourced from HTML).
const foo = someFunction(); // `someFunction` is not defined
const bar = baz + 1; // 'baz' is undeclared
import { someFunction } from 'some-file';
const baz = Math.random();
const foo = someFunction();
const bar = baz + 1;