6de2455917
- Added GLOBAL_MARKETS_TITLE to all translation files - Updated footer with 12 markets (4 active + 8 upcoming) - Translated market section to: zh-cn, zh-tw, ja, ko, th, vi, id, ms, hi - Built and deployed to production - CloudFront invalidation: I3RTMXVFDJXWLG3SYX208OP1CC
24 lines
602 B
JavaScript
24 lines
602 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.tryCatch = exports.errorObj = void 0;
|
|
//Try catch is not supported in optimizing
|
|
//compiler, so it is isolated
|
|
exports.errorObj = { e: {} };
|
|
let tryCatchTarget;
|
|
function tryCatcher(err, val) {
|
|
try {
|
|
const target = tryCatchTarget;
|
|
tryCatchTarget = null;
|
|
return target.apply(this, arguments);
|
|
}
|
|
catch (e) {
|
|
exports.errorObj.e = e;
|
|
return exports.errorObj;
|
|
}
|
|
}
|
|
function tryCatch(fn) {
|
|
tryCatchTarget = fn;
|
|
return tryCatcher;
|
|
}
|
|
exports.tryCatch = tryCatch;
|