mint-metrics / mojito-js-delivery

🧪 Source-controlled JS split testing framework for building and launching A/B tests.
https://mojito.mx/docs/js-delivery-intro
Other
16 stars 30 forks source link

Set a default storageAdapter #66

Closed kingo55 closed 3 years ago

kingo55 commented 4 years ago

We originally stripped this from the library because we thought the storageAdapter was too opinionated and in order to conserve weight.

However I think in the interest of making setup easier, we should consider providing a default one out of the box (either through our shared code or hardcoded into the library):

https://github.com/mint-metrics/mojito-js-delivery/blob/master/lib/mojito.js#L106-L110

kingo55 commented 4 years ago

Notes

Add this into the shared-code.js section where users can easily override.

Can have this commented out by default so it doesn't add to the weight.

kingo55 commented 3 years ago

Done - Closing.