Use indexOf instead of strict equality to match the host

This commit is contained in:
Booteille 2019-02-17 20:34:14 +01:00
parent c9d01c17a0
commit a465394457
No known key found for this signature in database
GPG Key ID: 7FC1ED300B74CD91
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ import { MessageKind, RedirectType } from './types';
import Preferences from './preferences'
const thumbnailURL = (host, path) => `https://${host}${path}`;
const isYouTube = document.location.hostname === 'www.youtube.com';
const isYouTube = document.location.hostname.indexOf('youtube.com') >= 0;
const LINK_ID = 'peertube-link';
function searchVideo(query) {