loopback-context/browser/current-context.js

18 lines
469 B
JavaScript
Raw Normal View History

2019-05-07 18:03:34 +00:00
// Copyright IBM Corp. 2016. All Rights Reserved.
// Node module: loopback-context
2016-07-28 13:40:19 +00:00
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
'use strict';
var LoopBackContext = module.exports;
2016-07-28 13:40:19 +00:00
LoopBackContext.getCurrentContext = function() {
2016-07-28 13:40:19 +00:00
return null;
};
LoopBackContext.runInContext =
LoopBackContext.createContext = function() {
2016-07-28 13:40:19 +00:00
throw new Error('Current context is not supported in the browser.');
};