MCPcopy Create free account
hub / github.com/TruthHun/BookStack / isServerRendering

Function isServerRendering

static/vuejs/vue.common.js:417–429  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

415// vue-server-renderer can set VUE_ENV
416var _isServer;
417var isServerRendering = function () {
418 if (_isServer === undefined) {
419 /* istanbul ignore if */
420 if (!inBrowser && typeof global !== 'undefined') {
421 // detect presence of vue-server-renderer and avoid
422 // Webpack shimming the process
423 _isServer = global['process'].env.VUE_ENV === 'server';
424 } else {
425 _isServer = false;
426 }
427 }
428 return _isServer
429};
430
431// detect devtools
432var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;

Callers 2

observeFunction · 0.70
parseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected