summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorWu Cheng-Han2016-10-10 20:42:40 +0800
committerWu Cheng-Han2016-10-10 20:42:40 +0800
commitc9f5cd49b0946b116a86fdd9cb4938a03fc96e1a (patch)
tree210d8a27048ad9134c6e548f3d053746e4abea66 /public
parenta090008d4ae7eb69d0403b2dec43605bc981b19a (diff)
Fix potential error
Diffstat (limited to '')
-rw-r--r--public/js/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 57658d69..323da283 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -2335,7 +2335,7 @@ var addStyleRule = (function () {
}());
function updateAuthorshipInner() {
// ignore when ot not synced yet
- if (Object.keys(cmClient.state).length > 0) return;
+ if (cmClient && Object.keys(cmClient.state).length > 0) return;
authorMarks = {};
for (var i = 0; i < authorship.length; i++) {
var atom = authorship[i];