浏览代码

Revert "UI: Use Twitch dashboard chat popout"

This reverts commit 6629c5d7b8f93da7f7c65f790d54f22949b79ac2.

Chat redirect only happens on raid, which is when you are ending your
stream.  That's acceptable behavior for the main chat window.
jp9000 6 年之前
父节点
当前提交
1b45007530
共有 1 个文件被更改,包括 2 次插入7 次删除
  1. 2 7
      UI/auth-twitch.cpp

+ 2 - 7
UI/auth-twitch.cpp

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