1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-07 01:41:39 +00:00

Upgrade webpack 2 (#4748)

* update webpack to version 4

* repair build bug

* update package code

* optimize package script

* update seafile-editor version

* repair code bug
This commit is contained in:
杨顺强
2020-12-15 18:00:39 +08:00
committed by GitHub
parent 030fa283cb
commit 873c49d30e
27 changed files with 17673 additions and 8069 deletions

View File

@@ -389,7 +389,7 @@ class MarkdownEditor extends React.Component {
return;
case 'update_users':
for (var prop in data.users) {
if (data.users.hasOwnProperty(prop)) {
if (Object.prototype.hasOwnProperty.call(data.users, prop)) {
if (prop === this.socket_id) {
data.users[prop]['myself'] = true;
break;
@@ -625,7 +625,7 @@ class MarkdownEditor extends React.Component {
setTimeout(() => {
let url = new URL(window.location.href);
if (url.hash) {
window.location.href = window.location.href;
window.location.href = url;
}
}, 100);
}