summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-core/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-core/src')
-rw-r--r--packages/gitbook-core/src/models/File.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/gitbook-core/src/models/File.js b/packages/gitbook-core/src/models/File.js
index 6f44700..03032a1 100644
--- a/packages/gitbook-core/src/models/File.js
+++ b/packages/gitbook-core/src/models/File.js
@@ -4,13 +4,14 @@ const { Record } = require('immutable');
const DEFAULTS = {
type: '',
mtime: new Date(),
- path: ''
+ path: '',
+ url: ''
};
class File extends Record(DEFAULTS) {
constructor(file = {}) {
if (typeof file === 'string') {
- file = { path: file };
+ file = { path: file, url: file };
}
super({