diff --git a/src/youtube.ts b/src/youtube.ts index 3f17f0e..759dc1d 100644 --- a/src/youtube.ts +++ b/src/youtube.ts @@ -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) {