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

Loading…
Cancel
Save