File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -175,8 +175,12 @@ class ParseServer {
175
175
if ( pushOptions . queueOptions ) {
176
176
delete pushOptions . queueOptions ;
177
177
}
178
+ var tmpAdapter = pushOptions . adapter ;
179
+ if ( pushOptions . adapter && typeof pushOptions . adapter === "string" ) {
180
+ delete pushOptions . adapter ;
181
+ }
178
182
// Pass the push options too as it works with the default
179
- const pushAdapter = loadAdapter ( pushOptions && pushOptions . adapter , ParsePushAdapter , pushOptions ) ;
183
+ const pushAdapter = loadAdapter ( pushOptions && tmpAdapter , ParsePushAdapter , pushOptions ) ;
180
184
// We pass the options and the base class for the adatper,
181
185
// Note that passing an instance would work too
182
186
const pushController = new PushController ( ) ;
You can’t perform that action at this time.
0 commit comments