bootstrap-vue
Version:
BootstrapVue, with over 40 plugins and more than 80 custom components, custom directives, and over 300 icons, provides one of the most comprehensive implementations of Bootstrap v4 components and grid system for Vue.js. With extensive and automated WAI-AR
16 lines (9 loc) • 472 B
JavaScript
/**
* SSR safe types
*/
import { hasWindowSupport } from './env'
const w = hasWindowSupport ? window : {}
export const Element = hasWindowSupport ? w.Element : class Element extends Object {}
export const HTMLElement = hasWindowSupport ? w.HTMLElement : class HTMLElement extends Element {}
export const SVGElement = hasWindowSupport ? w.SVGElement : class SVGElement extends Element {}
export const File = hasWindowSupport ? w.File : class File extends Object {}