Skip to content

Commit c9f5cd4

Browse files
committed
Fix potential error
1 parent a090008 commit c9f5cd4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2335,7 +2335,7 @@ var addStyleRule = (function () {
23352335
}());
23362336
function updateAuthorshipInner() {
23372337
// ignore when ot not synced yet
2338-
if (Object.keys(cmClient.state).length > 0) return;
2338+
if (cmClient && Object.keys(cmClient.state).length > 0) return;
23392339
authorMarks = {};
23402340
for (var i = 0; i < authorship.length; i++) {
23412341
var atom = authorship[i];

0 commit comments

Comments
 (0)