Use indexOf instead of strict equality to match the host
This commit is contained in:
parent
c9d01c17a0
commit
a465394457
|
@ -22,7 +22,7 @@ import { MessageKind, RedirectType } from './types';
|
||||||
import Preferences from './preferences'
|
import Preferences from './preferences'
|
||||||
|
|
||||||
const thumbnailURL = (host, path) => `https://${host}${path}`;
|
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';
|
const LINK_ID = 'peertube-link';
|
||||||
|
|
||||||
function searchVideo(query) {
|
function searchVideo(query) {
|
||||||
|
|
Loading…
Reference in New Issue