Forráskód Böngészése

UI: Use Twitch dashboard chat popout

This uses the dashboard chat popout instead of the normal chat popout in
order to ensure that the chat doesn't get redirected for raids/hosts.
jp9000 6 éve
szülő
commit
6629c5d7b8
1 módosított fájl, 7 hozzáadás és 2 törlés
  1. 7 2
      UI/auth-twitch.cpp

+ 7 - 2
UI/auth-twitch.cpp

@@ -202,7 +202,7 @@ void TwitchAuth::LoadUI()
 
 	url = "https://www.twitch.tv/popout/";
 	url += name;
-	url += "/chat";
+	url += "/dashboard/live/chat";
 
 	QSize size = main->frameSize();
 	QPoint pos = main->pos();
@@ -217,7 +217,12 @@ void TwitchAuth::LoadUI()
 	browser = cef->create_widget(nullptr, url, panel_cookies);
 	chat->SetWidget(browser);
 
-	script = bttv_script;
+	script = referrer_script1;
+	script += "https://www.twitch.tv/";
+	script += name;
+	script += "/dashboard/live";
+	script += referrer_script2;
+	script += bttv_script;
 	script += ffz_script;
 	browser->setStartupScript(script);