Skip to content
Snippets Groups Projects

Modify internal password generation to base it off the user's password

Merged Richard T. Carback III requested to merge hotfix/internalPassword into project/HavenBeta
1 file
+ 6
8
Compare changes
  • Side-by-side
  • Inline
+ 6
8
@@ -517,12 +517,11 @@ func (rsCB *RemoteStore) Write(path string, data []byte) error {
// - JSON of [bindings.RemoteStoreReport] (Uint8Array).
// - Catches any thrown errors (of type Error) and returns it as an error.
func (rsCB *RemoteStore) GetLastModified(path string) (string, error) {
fn := func() js.Value { return rsCB.getLastModified(path) }
v, err := exception.RunAndCatch(fn)
v, err := utils.Await(rsCB.getLastModified(path))
if err != nil {
return "", err
return "", js.Error{Value: err[0]}
}
return v.String(), err
return v[0].String(), nil
}
// GetLastWrite implements [bindings.RemoteStore.GetLastWrite()
@@ -531,12 +530,11 @@ func (rsCB *RemoteStore) GetLastModified(path string) (string, error) {
// - JSON of [bindings.RemoteStoreReport] (Uint8Array).
// - Catches any thrown errors (of type Error) and returns it as an error.
func (rsCB *RemoteStore) GetLastWrite() (string, error) {
fn := func() js.Value { return rsCB.getLastWrite() }
v, err := exception.RunAndCatch(fn)
v, err := utils.Await(rsCB.getLastWrite())
if err != nil {
return "", err
return "", js.Error{Value: err[0]}
}
return v.String(), err
return v[0].String(), nil
}
// ReadDir implements [bindings.RemoteStore.ReadDir]
Loading