Browse Source

Remove extra words

pull/2/head
Luke Childs 8 years ago
parent
commit
13579205e9
  1. 2
      README.md

2
README.md

@ -56,7 +56,7 @@ window.navigator.userAgent;
## Universal Testing Pattern
You can use a really simple pattern to enable your browser modules to run in Node.js with `window`. Just allow a window object to be passed in to your module and prepend any references to browser globals with `win`. Set `win` to the passed in window object if it exists, otherwise fallback to global `window`.
You can use a really simple pattern to enable your browser modules to run in Node.js. Just allow a window object to be passed in to your module and prepend any references to browser globals with `win`. Set `win` to the passed in window object if it exists, otherwise fallback to global `window`.
```js
module.exports = function(text, win) {

Loading…
Cancel
Save