From 1ceb21f42429a1162956e1165947ea525f734972 Mon Sep 17 00:00:00 2001 From: ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> Date: Sun, 22 Aug 2021 12:25:14 -0400 Subject: [PATCH] load shorts links (#1605) --- src/renderer/store/modules/utils.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/renderer/store/modules/utils.js b/src/renderer/store/modules/utils.js index 90b22d4d..9650981e 100644 --- a/src/renderer/store/modules/utils.js +++ b/src/renderer/store/modules/utils.js @@ -308,6 +308,13 @@ const actions = { return paramsObject } }, + // youtube.com/shorts + function() { + if (urlObject.pathname.match(/^\/shorts\/[A-Za-z0-9_-]+$/)) { + extractParams(urlObject.pathname.replace('/shorts/', '')) + return paramsObject + } + }, // cloudtube function() { if (urlObject.host.match(/^cadence\.(gq|moe)$/) && urlObject.pathname.match(/^\/cloudtube\/video\/[A-Za-z0-9_-]+$/)) {