summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/build.js1
-rw-r--r--client/js/models/post.js3
2 files changed, 1 insertions, 3 deletions
diff --git a/client/build.js b/client/build.js
index c70eec4..5b84d21 100644
--- a/client/build.js
+++ b/client/build.js
@@ -135,7 +135,6 @@ function bundleJs(config) {
'superagent',
'mousetrap',
'js-cookie',
- 'page',
'nprogress',
];
diff --git a/client/js/models/post.js b/client/js/models/post.js
index d089c87..2f19e82 100644
--- a/client/js/models/post.js
+++ b/client/js/models/post.js
@@ -105,7 +105,6 @@ class Post extends events.EventTarget {
files.thumbnail = this._thumbnail;
}
-
let promise = this._id ?
api.put('/post/' + this._id, detail, files) :
api.post('/posts', detail, files);
@@ -201,7 +200,7 @@ class Post extends events.EventTarget {
this._contentUrl =
this._orig._contentUrl +
'?bypass-cache=' +
- Math.round(Math.random()*1000);
+ Math.round(Math.random() * 1000);
}
_updateFromResponse(response) {