fix(hydrate): check for client runtime method (#18866)

This commit is contained in:
Adam Bradley
2019-07-23 16:11:29 -05:00
committed by GitHub
parent 23ce6fae9e
commit c52b3b4997

View File

@ -225,13 +225,15 @@ export class StackController {
containerEl.appendChild(enteringEl); containerEl.appendChild(enteringEl);
} }
return containerEl.commit(enteringEl, leavingEl, { if ((containerEl as any).commit) {
deepWait: true, return containerEl.commit(enteringEl, leavingEl, {
duration: direction === undefined ? 0 : undefined, deepWait: true,
direction, duration: direction === undefined ? 0 : undefined,
showGoBack, direction,
progressAnimation showGoBack,
}); progressAnimation
});
}
} }
return Promise.resolve(false); return Promise.resolve(false);
} }