@vimeo/player
Version:
Interact with and control an embedded Vimeo Player.
9 lines (6 loc) • 371 B
JavaScript
import { isNode } from './functions';
const arrayIndexOfSupport = typeof Array.prototype.indexOf !== 'undefined';
const postMessageSupport = typeof window !== 'undefined' && typeof window.postMessage !== 'undefined';
if (!isNode && (!arrayIndexOfSupport || !postMessageSupport)) {
throw new Error('Sorry, the Vimeo Player API is not available in this browser.');
}