nkoehring / vue-a2b

Split Testing for Vue.js
MIT License
87 stars 13 forks source link

persistence: fix null store when using always #12

Closed nemtsov closed 3 years ago

nemtsov commented 6 years ago

<split-test name="my_test" always="C" >

Would throw Cannot set property 'my_test' of null when trying to this._store[name] = winner; since the store was never created.

nkoehring commented 3 years ago

Thank you for this PR. Your fix is ignoring the storage method though and should use load method instead of setting _store directly. This will be fixed separately.