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

Function isServerRendering

static/vuejs/vue.runtime.esm.js:411–423  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

observeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected