Skip to content
Snippets Groups Projects
Commit a83e2949 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire: Committed by Reiter, Christoph
Browse files

Simplify function hasEnabledSource (#6)

parent 47ef0c51
No related branches found
No related tags found
No related merge requests found
...@@ -226,9 +226,7 @@ export class FileSource extends ScopedElementsMixin(VPULitElement) { ...@@ -226,9 +226,7 @@ export class FileSource extends ScopedElementsMixin(VPULitElement) {
} }
hasEnabledSource(source) { hasEnabledSource(source) {
const enabledSources = this.enabledSources.split(','); return this.enabledSources.split(',').includes(source);
return enabledSources.includes(source);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment