Skip to content

Commit

Permalink
style(context): congratulations 13 years old to q-zone
Browse files Browse the repository at this point in the history
  • Loading branch information
huangyoukun committed Jun 6, 2018
1 parent a9a0f83 commit ae91626
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/tsw/context.js
Expand Up @@ -11,20 +11,20 @@
const Context = require('runtime/Context');
const Window = require('runtime/Window');

this.currentContext = function() {
this.currentContext = function () {
return (process.domain && process.domain.currentContext) || new Context();
};

if (!global.context) {

Object.defineProperty(global, 'context', {
get: function() {
get: function () {
return module.exports.currentContext();
}
});

Object.defineProperty(global, 'window', {
get: function() {
get: function () {

if (global.windowHasDisabled) {
return undefined;
Expand Down

0 comments on commit ae91626

Please sign in to comment.