There was an error while loading. Please reload this page.
1 parent 92d73b7 commit 7577f0cCopy full SHA for 7577f0c
README.md
@@ -49,21 +49,15 @@ etc). Stored in EJSON in a
49
`<script id="id" type="application/ejson"><</script>`
50
tag in the HEAD; this allows it to work even if
51
`browserPolicy.content.disallowInlineScripts()` has been called. Note that `id`
52
-must be unique in the entire DOM!
53
-
54
-e.g.
+must be unique in the entire DOM! e.g.
55
56
```js
57
-if (Meteor.isServer) {
58
+if (Meteor.isServer)
59
Inject.obj('myData', myData);
60
61
-} else if (Meteor.isClient) {
62
63
- // available immediateyl
+// always available immediately
+if (Meteor.isClient)
64
var myData = Injected.obj('myData');
65
66
-}
67
```
68
69
* `Inject.meta(id, textOrFunc, [res])`, accessible via `Injected.meta(id)`
0 commit comments