Browse Source

Fix indent.

pull/73/head
Guillaume Martigny 6 years ago
parent
commit
a2c269e2dc
  1. 14
      src/index.js

14
src/index.js

@ -35,13 +35,13 @@ const browserEnv = function (...args) {
// If we're only applying specific required properties remove everything else
.filter(prop => !properties || properties.includes(prop))
// Copy what's left to the Node.js global scope
.forEach(prop => {
Object.defineProperty(global, prop, {
configurable: true,
get: () => window[prop]
});
});
// Copy what's left to the Node.js global scope
.forEach(prop => {
Object.defineProperty(global, prop, {
configurable: true,
get: () => window[prop]
});
});
// Return reference to original window object
return window;

Loading…
Cancel
Save