x25 5.1.3 → 5.1.4
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/Async/RouteLoading.js +8 -6
- package/package.json +1 -1
package/Async/RouteLoading.js
CHANGED
|
@@ -14,27 +14,29 @@ var _SimulatedException = require("./SimulatedException");
|
|
|
14
14
|
|
|
15
15
|
var _SimulatedException2 = _interopRequireDefault(_SimulatedException);
|
|
16
16
|
|
|
17
|
-
var _Error = require("../
|
|
17
|
+
var _Error = require("../Messages/Error");
|
|
18
18
|
|
|
19
19
|
var _Error2 = _interopRequireDefault(_Error);
|
|
20
20
|
|
|
21
21
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
22
|
|
|
23
23
|
var RouteLoading = function RouteLoading(_ref) {
|
|
24
|
-
var
|
|
24
|
+
var theError = _ref.error,
|
|
25
25
|
retry = _ref.retry,
|
|
26
26
|
timedOut = _ref.timedOut;
|
|
27
27
|
|
|
28
|
-
if (
|
|
28
|
+
if (theError) {
|
|
29
29
|
|
|
30
30
|
// eslint-disable-next-line no-console
|
|
31
|
-
console.log("
|
|
31
|
+
console.log("theError");
|
|
32
|
+
// eslint-disable-next-line no-console
|
|
33
|
+
console.log(theError);
|
|
32
34
|
|
|
33
|
-
if (
|
|
35
|
+
if (theError.name === "ChunkLoadError") {
|
|
34
36
|
return _react2.default.createElement(_Error2.default, { message: "Pagina nu a putut fi \xEEnc\u0103rcat\u0103. V\u0103 rug\u0103m s\u0103 face\u021Bi refresh la pagin\u0103" });
|
|
35
37
|
}
|
|
36
38
|
|
|
37
|
-
throw new _SimulatedException2.default(
|
|
39
|
+
throw new _SimulatedException2.default(theError);
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
if (timedOut) {
|
package/package.json
CHANGED