1
0
mirror of https://github.com/flarum/core.git synced 2025-07-13 12:56:26 +02:00

The document JS payload attribute was previously renamed to apiDocument

This commit is contained in:
Toby Zerner
2018-09-30 09:24:25 +09:30
parent d3a5e2451a
commit 3006f58274
3 changed files with 6 additions and 6 deletions

View File

@ -185,11 +185,11 @@ export default class Application {
* @return {Object|null}
* @public
*/
preloadedDocument() {
if (this.data.document) {
const results = this.store.pushPayload(this.data.document);
preloadedApiDocument() {
if (this.data.apiDocument) {
const results = this.store.pushPayload(this.data.apiDocument);
this.data.document = null;
this.data.apiDocument = null;
return results;
}