diff --git a/build/webpack.prod.config.js b/build/webpack.prod.config.js index 87b93937..cc7f338f 100644 --- a/build/webpack.prod.config.js +++ b/build/webpack.prod.config.js @@ -55,6 +55,6 @@ module.exports = merge(baseWpConfig, { filename: `${publicDir}/index.html` }), new CopyWebpackPlugin([{from: `${clientDir}/assets/*`, to: `${publicDir}/`, flatten: true}]), - new AppCachePlugin({}) + //new AppCachePlugin({}) ] }); diff --git a/client/components/Reader/ServerStorage/ServerStorage.vue b/client/components/Reader/ServerStorage/ServerStorage.vue index 297380cb..34d0d052 100644 --- a/client/components/Reader/ServerStorage/ServerStorage.vue +++ b/client/components/Reader/ServerStorage/ServerStorage.vue @@ -71,7 +71,10 @@ class ServerStorage extends Vue { } async bookManagerEvent(eventName, itemKey) { - if (eventName == 'recent-changed') { + if (!this.serverSyncEnabled) + return; + + if (eventName == 'recent-changed') { if (itemKey) { if (!this.recentDeltaInited) { this.warning('Функции сохранения на сервер пока недоступны'); @@ -455,7 +458,7 @@ class ServerStorage extends Vue { this.prevItemKey = itemKey; //дифф от дельты для уменьшения размера передаваемых данных в частном случае - if (this.makeDeltaDiff) { + /*if (this.makeDeltaDiff) { this.recentDelta.diff = utils.getObjDiff(this.prevSavedItem, bm.recent[itemKey]); this.recentDelta.diff.key = itemKey; delete this.recentDelta[itemKey]; @@ -467,7 +470,8 @@ class ServerStorage extends Vue { this.recentDelta[key] = utils.applyObjDiff(this.prevSavedItem, this.recentDelta.diff); } delete this.recentDelta.diff; - } + }*/ +delete this.recentDelta.diff; //сохранение this.savingRecent = true;