2018-01-03 04:05:53 +00:00
|
|
|
// Copyright IBM Corp. 2014,2018. All Rights Reserved.
|
2016-05-03 22:50:21 +00:00
|
|
|
// Node module: loopback
|
|
|
|
// This file is licensed under the MIT License.
|
|
|
|
// License text available at https://opensource.org/licenses/MIT
|
|
|
|
|
2014-06-06 09:47:25 +00:00
|
|
|
/*
|
|
|
|
* This is an internal file that should not be used outside of loopback.
|
|
|
|
* All exported entities can be accessed via the `loopback` object.
|
|
|
|
* @private
|
|
|
|
*/
|
|
|
|
|
2016-11-15 21:46:23 +00:00
|
|
|
'use strict';
|
2019-10-07 09:45:34 +00:00
|
|
|
const runtime = exports;
|
2014-06-06 09:47:25 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* True if running in a browser environment; false otherwise.
|
|
|
|
* @header loopback.isBrowser
|
|
|
|
*/
|
|
|
|
|
|
|
|
runtime.isBrowser = typeof window !== 'undefined';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* True if running in a server environment; false otherwise.
|
|
|
|
* @header loopback.isServer
|
|
|
|
*/
|
|
|
|
|
|
|
|
runtime.isServer = !runtime.isBrowser;
|