about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJacob Parnell <jparnell@mailfence.com>2023-02-25 15:32:42 -0600
committerJacob Parnell <jparnell@mailfence.com>2023-02-25 15:32:42 -0600
commit31dfbb457f4186106cc1731b5ceb56e9b9d84089 (patch)
treec62db049ed95ff728c05b7a0430b8e1178575ecb
parentFix YouTube livestream chat being broken on embed-only mode (diff)
downloadlibredirect-31dfbb457f4186106cc1731b5ceb56e9b9d84089.zip
Fix YouTube live chat replays
-rw-r--r--src/assets/javascripts/services.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js
index 0846ebeb..88d04512 100644
--- a/src/assets/javascripts/services.js
+++ b/src/assets/javascripts/services.js
@@ -159,13 +159,13 @@ function redirect(url, type, initiator, forceRedirection) {
 		case "piped":
 		case "pipedMaterial":
 		case "cloudtube": {
-			if (url.pathname == "/live_chat") {
+			if (url.pathname.startsWith("/live_chat")) {
 				return null;
 			}
 			return `${randomInstance}${url.pathname}${url.search}`;
 		}
 		case "poketube": {
-			if (url.pathname == "/live_chat") {
+			if (url.pathname.startsWith("/live_chat")) {
 				return null;
 			}
 			if (url.pathname.startsWith('/channel')) {