Skip to content

Commit

Permalink
Look for Twitch link in "Custom Info Box" showcase
Browse files Browse the repository at this point in the history
in addition to the profile summary
resolves jshackles#1619
  • Loading branch information
seeeeew committed Jun 28, 2018
1 parent 0fa1cd2 commit c7e67a6
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit c7e67a6

Please sign in to comment.