@xuda.io/xuda-worker-bundle-min 1.3.652 → 1.3.654
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +11 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1116,12 +1116,22 @@ func.common.perform_rpi_request = async function (
|
|
|
1116
1116
|
});
|
|
1117
1117
|
|
|
1118
1118
|
if (!response.ok) {
|
|
1119
|
-
throw
|
|
1119
|
+
throw response.status;
|
|
1120
1120
|
}
|
|
1121
1121
|
const json = await response.json();
|
|
1122
1122
|
return json;
|
|
1123
1123
|
} catch (err) {
|
|
1124
1124
|
console.error(err);
|
|
1125
|
+
if (err === 503) {
|
|
1126
|
+
_this.func.UI.utils.progressScreen.show(
|
|
1127
|
+
SESSION_ID,
|
|
1128
|
+
`Error code ${err}, reloading in 5 sec`
|
|
1129
|
+
);
|
|
1130
|
+
setTimeout(async () => {
|
|
1131
|
+
await func.index.delete_pouch(SESSION_ID);
|
|
1132
|
+
location.reload();
|
|
1133
|
+
}, 5000);
|
|
1134
|
+
}
|
|
1125
1135
|
return {};
|
|
1126
1136
|
}
|
|
1127
1137
|
};
|