mirror of
https://github.com/owncast/owncast.git
synced 2024-11-22 12:49:37 +03:00
fix: external actions were assuming all actions are urls. Fixes #3213
This commit is contained in:
parent
7575c64d14
commit
16db7825c9
1 changed files with 22 additions and 17 deletions
|
@ -138,6 +138,8 @@ export const Content: FC = () => {
|
|||
|
||||
const externalActionSelected = (action: ExternalAction) => {
|
||||
const { openExternally, url } = action;
|
||||
|
||||
if (url) {
|
||||
const updatedUrl = new URL(url);
|
||||
updatedUrl.searchParams.append('instance', currentBrowserWindowUrl);
|
||||
|
||||
|
@ -160,6 +162,9 @@ export const Content: FC = () => {
|
|||
} else {
|
||||
setExternalActionToDisplay(updatedAction);
|
||||
}
|
||||
} else {
|
||||
setExternalActionToDisplay(action);
|
||||
}
|
||||
};
|
||||
|
||||
const incrementVisitCounter = () => {
|
||||
|
|
Loading…
Reference in a new issue