Improves loading of Push Adapter, fix loading of S3Adapter

- Adds environment variables to configure S3Adapter
This commit is contained in:
Florent Vilmart
2016-03-04 10:54:32 -05:00
parent 3e6c53c3e4
commit 069605e9c3
3 changed files with 20 additions and 25 deletions

View File

@@ -28,13 +28,6 @@ export function loadAdapter(adapter, defaultAdapter, options) {
return loadAdapter(adapter.class, undefined, adapter.options);
} else if (adapter.adapter) {
return loadAdapter(adapter.adapter, undefined, adapter.options);
} else {
// Try to load the defaultAdapter with the options
// The default adapter should throw if the options are
// incompatible
try {
return loadAdapter(defaultAdapter, undefined, adapter);
} catch (e) {};
}
// return the adapter as is as it's unusable otherwise
return adapter;