We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9fc8d0 commit d742b33Copy full SHA for d742b33
1 file changed
public/js/index.js
@@ -1901,6 +1901,7 @@ socket.on('refresh', function (data) {
1901
updatePermission(data.permission);
1902
updateLastInfo(data);
1903
if (!loaded) {
1904
+ // auto change mode if no content detected
1905
var nocontent = editor.getValue().length <= 0;
1906
if (nocontent) {
1907
if (visibleXS)
@@ -1913,9 +1914,9 @@ socket.on('refresh', function (data) {
1913
1914
editor.focus();
1915
editor.refresh();
1916
}
- loaded = true;
1917
updateViewInner(); // bring up view rendering earlier
1918
updateHistory(); //update history whether have content or not
1919
+ loaded = true;
1920
emitUserStatus(); //send first user status
1921
updateOnlineStatus(); //update first online status
1922
setTimeout(function () {
0 commit comments