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

Function isServerRendering

static/vuejs/vue.runtime.common.js:413–425  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

observeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected