aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/lib
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2019-10-27 10:17:47 +0100
committerLibravatar vantezzen <hello@vantezzen.io>2019-10-27 10:17:47 +0100
commita0ac009c44b210df4d79ffedbdd892fe7302d22e (patch)
treee74b4aa156a6da0311d5fe82b954ea76723c4919 /src/stores/lib
parentImprove hero picture (diff)
downloadferdium-app-a0ac009c44b210df4d79ffedbdd892fe7302d22e.tar.gz
ferdium-app-a0ac009c44b210df4d79ffedbdd892fe7302d22e.tar.zst
ferdium-app-a0ac009c44b210df4d79ffedbdd892fe7302d22e.zip
#146 Add possible fix for 1.1.1.1 hack
Diffstat (limited to 'src/stores/lib')
-rw-r--r--src/stores/lib/CachedRequest.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stores/lib/CachedRequest.js b/src/stores/lib/CachedRequest.js
index ac8b2bd81..31c7ce241 100644
--- a/src/stores/lib/CachedRequest.js
+++ b/src/stores/lib/CachedRequest.js
@@ -39,7 +39,7 @@ export default class CachedRequest extends Request {
39 }), 0); 39 }), 0);
40 40
41 // Issue api call & save it as promise that is handled to update the results of the operation 41 // Issue api call & save it as promise that is handled to update the results of the operation
42 this._promise = new Promise((resolve, reject) => { 42 this._promise = new Promise((resolve) => {
43 this._api[this._method](...callArgs) 43 this._api[this._method](...callArgs)
44 .then((result) => { 44 .then((result) => {
45 setTimeout(action(() => { 45 setTimeout(action(() => {
@@ -63,7 +63,7 @@ export default class CachedRequest extends Request {
63 this.wasExecuted = true; 63 this.wasExecuted = true;
64 this._isWaitingForResponse = false; 64 this._isWaitingForResponse = false;
65 this._triggerHooks(); 65 this._triggerHooks();
66 reject(error); 66 // reject(error);
67 }), 1); 67 }), 1);
68 })); 68 }));
69 }); 69 });