Skip to content

Commit

Permalink
fix(storage): configure doesn't resolve on Android and iOS (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Feb 24, 2021
1 parent c4a803a commit 4f51b24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ public void configure(PluginCall call) {
storage = new Storage(getContext(), configuration);
} catch (CloneNotSupportedException e) {
call.reject("Error while configuring", e);
return;
}
call.resolve();
}

@PluginMethod
Expand Down
1 change: 1 addition & 0 deletions storage/ios/Plugin/StoragePlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class StoragePlugin: CAPPlugin {
}

storage = Storage(with: configuration)
call.resolve()
}

@objc func get(_ call: CAPPluginCall) {
Expand Down

0 comments on commit 4f51b24

Please sign in to comment.