File "index.ts"
Full Path: /home/warrior1/public_html/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-videopress/src/client/utils/video-extensions/index.ts
File size: 470 bytes
MIME-type: text/plain
Charset: utf-8
const allowedVideoExtensionsAndMimetypes =
window.jetpackVideoPressInitialState?.allowedVideoExtensions || {};
const allowedVideoExtensions = Object.keys( allowedVideoExtensionsAndMimetypes ).filter(
// No .videopress file
extension => extension !== 'videopress'
);
const fileInputExtensions = allowedVideoExtensions
.map( extension => `.${ extension }` )
.join( ',' );
export { allowedVideoExtensionsAndMimetypes, allowedVideoExtensions, fileInputExtensions };