Skip to content

Commit 7577f0c

Browse files
committed
more README improvements
1 parent 92d73b7 commit 7577f0c

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,15 @@ etc). Stored in EJSON in a
4949
`&lt;script id="id" type="application/ejson">&lt;</script>`
5050
tag in the HEAD; this allows it to work even if
5151
`browserPolicy.content.disallowInlineScripts()` has been called. Note that `id`
52-
must be unique in the entire DOM!
53-
54-
e.g.
52+
must be unique in the entire DOM! e.g.
5553

5654
```js
57-
if (Meteor.isServer) {
58-
55+
if (Meteor.isServer)
5956
Inject.obj('myData', myData);
6057

61-
} else if (Meteor.isClient) {
62-
63-
// available immediateyl
58+
// always available immediately
59+
if (Meteor.isClient)
6460
var myData = Injected.obj('myData');
65-
66-
}
6761
```
6862

6963
* `Inject.meta(id, textOrFunc, [res])`, accessible via `Injected.meta(id)`

0 commit comments

Comments
 (0)