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

Function isServerRendering

static/vuejs/vue.js:421–433  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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