mirror of
https://github.com/frappe/books.git
synced 2024-11-13 00:46:28 +00:00
Initialize docs in init
This commit is contained in:
parent
c8fb834e51
commit
9bd1fa77a8
2
index.js
2
index.js
@ -1,9 +1,11 @@
|
|||||||
|
const Observable = require('./utils/observable');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
async init() {
|
async init() {
|
||||||
if (this._initialized) return;
|
if (this._initialized) return;
|
||||||
this.initConfig();
|
this.initConfig();
|
||||||
this.initGlobals();
|
this.initGlobals();
|
||||||
|
this.docs = new Observable();
|
||||||
this._initialized = true;
|
this._initialized = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user