mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-12 23:52:25 +03:00
19 lines
497 B
JavaScript
19 lines
497 B
JavaScript
import { hasGlobalWindow } from '../utils/window'
|
|
|
|
const _global = hasGlobalWindow ? window : global
|
|
|
|
const console = _global.console || {}
|
|
|
|
export function warn (str) {
|
|
/* istanbul ignore next */
|
|
if (!console || !console.warn) {
|
|
return
|
|
}
|
|
|
|
console.warn(str)
|
|
}
|
|
|
|
export const showWarningNotSupportedInBrowserBundle = method => warn(`${method} is not supported in browser builds`)
|
|
|
|
export const showWarningNotSupported = () => warn('This vue app/component has no vue-meta configuration')
|