]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tools/peertube-auth.ts
Handle webp images from youtube-dl
[github/Chocobozzz/PeerTube.git] / server / tools / peertube-auth.ts
index c1a804f8311dc97b2bb8ea7d489c70aa35fdad0e..74bce73142488d30d29a8a1a63d52a68ba0f0828 100644 (file)
@@ -28,7 +28,7 @@ async function delInstance (url: string) {
 async function setInstance (url: string, username: string, password: string, isDefault: boolean) {
   const [ settings, netrc ] = await Promise.all([ getSettings(), getNetrc() ])
 
-  if (settings.remotes.indexOf(url) === -1) {
+  if (settings.remotes.includes(url) === false) {
     settings.remotes.push(url)
   }