Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
parity-signer
Commits
f6309069
Unverified
Commit
f6309069
authored
Mar 24, 2017
by
Tomasz Drwięga
Browse files
Adding travis yml.
parent
976be50a
Changes
2
Hide whitespace changes
Inline
Side-by-side
.travis.yml
0 → 100644
View file @
f6309069
---
language
:
node_js
node_js
:
-
6
cache
:
directories
:
-
node_modules
install
:
true
script
:
-
npm run lint
-
npm run test
src/util/db.js
View file @
f6309069
...
...
@@ -14,6 +14,12 @@ export const saveAccount = (account) =>
export
const
saveAccounts
=
(
accounts
)
=>
accounts
.
forEach
(
saveAccount
)
export
const
loadAccounts
=
()
=>
SecureStorage
.
getAllItems
(
accountsStore
).
then
(
accounts
=>
Object
.
values
(
accounts
).
map
(
account
=>
JSON
.
parse
(
account
))
)
export
const
loadAccounts
=
()
=>
{
if
(
!
SecureStorage
)
{
return
Promise
.
resolve
([])
}
SecureStorage
.
getAllItems
(
accountsStore
).
then
(
accounts
=>
Object
.
values
(
accounts
).
map
(
account
=>
JSON
.
parse
(
account
))
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment