Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

Look for Twitch link in "Custom Info Box" showcase #1621

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion enhancedsteam.js
Original file line number Diff line number Diff line change
Expand Up @@ -2867,7 +2867,7 @@ function add_supporter_badges() {

function add_twitch_info() {
$(".profile_leftcol *").first().prepend("<div class='profile_customization' id='es_twitch' style='display: none;'></div>");
var search = $(".profile_summary").find("a[href*='twitch.tv/']")[0];
var search = $(".profile_summary, .customtext_showcase").find("a[href*='twitch.tv/']")[0];
if (search) {
var twitch_id = $(search).attr("href").match(/twitch\.tv\/(.+)/)[1];
if (twitch_id) {
Expand Down