@xuda.io/xuda-worker-bundle 1.3.2712 → 1.3.2714
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 +7 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -9492,6 +9492,13 @@ func.utils.write_log = async function (SESSION_ID, method = '', msg = '', log_ty
|
|
|
9492
9492
|
method,
|
|
9493
9493
|
...meta,
|
|
9494
9494
|
};
|
|
9495
|
+
const is_offline =
|
|
9496
|
+
(typeof IS_ONLINE !== 'undefined' && !IS_ONLINE) ||
|
|
9497
|
+
(typeof navigator !== 'undefined' && navigator.onLine === false);
|
|
9498
|
+
|
|
9499
|
+
if (_session?.is_draft_runtime && is_offline) {
|
|
9500
|
+
return null;
|
|
9501
|
+
}
|
|
9495
9502
|
|
|
9496
9503
|
if (typeof IS_API_SERVER !== 'undefined' || typeof IS_DOCKER !== 'undefined' || typeof IS_PROCESS_SERVER !== 'undefined') {
|
|
9497
9504
|
return __.rpi.write_log(
|