2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-12 23:52:25 +03:00
Files
vue-meta/src/shared/log.js
T
2019-09-17 13:55:29 +02:00

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')