snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
20
react/features/base/known-domains/actions.ts
Normal file
20
react/features/base/known-domains/actions.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { ADD_KNOWN_DOMAINS } from './actionTypes';
|
||||
|
||||
/**
|
||||
* Creates a (redux) action to add known domains to the list of domains known to
|
||||
* the feature base/known-domains.
|
||||
*
|
||||
* @param {string | Array<string>} knownDomains - The known domain(s) to add to
|
||||
* the list of domains known to the feature base/known-domains.
|
||||
* @returns {{
|
||||
* type: ADD_KNOWN_DOMAINS,
|
||||
* knownDomains: Array<string>
|
||||
* }}
|
||||
*/
|
||||
export function addKnownDomains(knownDomains: string | Array<string>) {
|
||||
return {
|
||||
type: ADD_KNOWN_DOMAINS,
|
||||
knownDomains:
|
||||
typeof knownDomains === 'string' ? [ knownDomains ] : knownDomains
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user