This is a Meteor Desktop plugin.
Because of Electron
and meteor-desktop
implementation the builtin Chrome
localStorage works unreliably.
This package provides a working localStorage
substitute. Available as Meteor._localStorage
.
API is here.
This also makes Meteor autologin work properly in Electron.
In your .desktop/settings.json
add this package to your plugins list:
{
"plugins": {
"meteor-desktop-localstorage": {
"version": "0.0.11"
}
}
}
It will also add omega:meteor-desktop-localstorage
package to your Meteor project.
You can pass custom settings to the plugin, for example:
{
"plugins": {
"meteor-desktop-localstorage": {
"version": "0.0.11",
"fileName": "myCustomName.json"
}
}
}
PRs are always welcome. Be sure to update the tests.
For smooth developing process you need to open two terminals. In the first one type npm run build-watch
and in the second npm run test-watch
.
Tests are run by AVA.