Fixed history not update if note have no content and lz-string version mismatch
This commit is contained in:
parent
762bf63581
commit
3fdceaaf06
5 changed files with 5 additions and 4 deletions
|
@ -31,6 +31,7 @@
|
||||||
"socket.io-client": "~1.3.7",
|
"socket.io-client": "~1.3.7",
|
||||||
"viz.js": "~1.3.0",
|
"viz.js": "~1.3.0",
|
||||||
"js-yaml": "~3.4.6",
|
"js-yaml": "~3.4.6",
|
||||||
"to-markdown": "~1.3.0"
|
"to-markdown": "~1.3.0",
|
||||||
|
"lz-string": "~1.4.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -232,7 +232,7 @@
|
||||||
<script src="/vendor/list.min.js" defer></script>
|
<script src="/vendor/list.min.js" defer></script>
|
||||||
<script src="/vendor/FileSaver.min.js" defer></script>
|
<script src="/vendor/FileSaver.min.js" defer></script>
|
||||||
<script src="/vendor/store.min.js" defer></script>
|
<script src="/vendor/store.min.js" defer></script>
|
||||||
<script src="/vendor/lz-string.min.js" defer></script>
|
<script src="/vendor/lz-string/libs/lz-string.min.js" defer></script>
|
||||||
<script src="/js/common.js" defer></script>
|
<script src="/js/common.js" defer></script>
|
||||||
<script src="/js/history.js" defer></script>
|
<script src="/js/history.js" defer></script>
|
||||||
<script src="/js/cover.js" defer></script>
|
<script src="/js/cover.js" defer></script>
|
||||||
|
|
|
@ -1228,6 +1228,7 @@ socket.on('refresh', function (data) {
|
||||||
editor.refresh();
|
editor.refresh();
|
||||||
}
|
}
|
||||||
loaded = true;
|
loaded = true;
|
||||||
|
updateHistory(); //update history whether have content or not
|
||||||
emitUserStatus(); //send first user status
|
emitUserStatus(); //send first user status
|
||||||
updateOnlineStatus(); //update first online status
|
updateOnlineStatus(); //update first online status
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
|
1
public/vendor/lz-string.min.js
vendored
1
public/vendor/lz-string.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -28,7 +28,7 @@
|
||||||
<script src="/vendor/remarkable.min.js" defer></script>
|
<script src="/vendor/remarkable.min.js" defer></script>
|
||||||
<script src="/vendor/remarkable-regex.js" defer></script>
|
<script src="/vendor/remarkable-regex.js" defer></script>
|
||||||
<script src="/vendor/gist-embed.js" defer></script>
|
<script src="/vendor/gist-embed.js" defer></script>
|
||||||
<script src="/vendor/lz-string.min.js" defer></script>
|
<script src="/vendor/lz-string/libs/lz-string.min.js" defer></script>
|
||||||
<script src="/vendor/string.min.js" defer></script>
|
<script src="/vendor/string.min.js" defer></script>
|
||||||
<script src="/vendor/highlight-js/highlight.min.js" defer></script>
|
<script src="/vendor/highlight-js/highlight.min.js" defer></script>
|
||||||
<script src="/vendor/js.cookie.js" defer></script>
|
<script src="/vendor/js.cookie.js" defer></script>
|
||||||
|
|
Loading…
Reference in a new issue