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

Function isServerRendering

static/vuejs/vue.esm.js:415–427  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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