mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
clean lib
This commit is contained in:
@@ -4,7 +4,7 @@ import keygen from './keygen'
|
||||
function getClientKey () {
|
||||
let clientKey = localStorage.getItem('clientKey')
|
||||
if (!_.isString(clientKey) || clientKey.length !== 40) {
|
||||
clientKey = keygen()
|
||||
clientKey = keygen(20)
|
||||
setClientKey(clientKey)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user