Skip to content

Commit 6c4dbce

Browse files
committed
Installation options
1 parent c236626 commit 6c4dbce

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-meteor-tracker",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Use Meteor Tracker reactivity inside Vue components",
55
"main": "index.js",
66
"scripts": {

src/vue-plugin.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function defaultSubscription(...args) {
77
}
88

99
export default {
10-
install(Vue) {
10+
install(Vue, options) {
1111

1212
const vueVersion = parseInt(Vue.version.charAt(0));
1313

@@ -18,6 +18,10 @@ export default {
1818
freeze: false,
1919
};
2020

21+
for(const k in options) {
22+
Vue.config.meteor[k] = options[k];
23+
}
24+
2125
function prepare() {
2226
this._trackerHandles = [];
2327

0 commit comments

Comments
 (0)