Open galfert opened 6 years ago
It's not really a bug, is it? This is not meant to indicate connection state, and the default is remotestorage after all.
But it's inconsistent from when you disconnect. So I would count that as a bug.
I think we should also mention this property in the documentation for Dropbox/Google Drive.
But it's inconsistent from when you disconnect. So I would count that as a bug.
My point was that the bug could just as well be that it's undefined
after disconnecting. In fact, undefined
is worse than a default value imo, because it's usually used for things that are literally not defined, instead of e.g. a null
value for something that is defined, but has no value.
When no storage is connected yet,
remoteStorage.backend
already has the value"remotestorage"
.But when connecting a storage and then disconnecting,
remoteStorage.backend
isundefined
.The value should be
undefined
in the beginning as well.