prepareTwitchUrl = (url) => {
  const parsedUrl = parseUrl(url, true);
  if (!parsedUrl.host.includes('twitch.tv')) {
    return url;
  }

  // Return embed link only if on channel page
  if (!parsedUrl.query || !parsedUrl.query.channel) {
    return url;
  }

  return `https://player.twitch.tv?html5&channel=${parsedUrl.query.channel}`;
}
Prepares twitch URL for embed functionality
@param url
@return {*}