aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators/metrics.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/custom-validators/metrics.ts')
-rw-r--r--server/helpers/custom-validators/metrics.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/server/helpers/custom-validators/metrics.ts b/server/helpers/custom-validators/metrics.ts
new file mode 100644
index 000000000..533f8988d
--- /dev/null
+++ b/server/helpers/custom-validators/metrics.ts
@@ -0,0 +1,9 @@
1function isValidPlayerMode (value: any) {
2 return value === 'webtorrent' || value === 'p2p-media-loader'
3}
4
5// ---------------------------------------------------------------------------
6
7export {
8 isValidPlayerMode
9}