lynx-intlayer
Version:
A Lynx plugin for seamless internationalization (i18n) and localization (l10n) of your mobile app.
14 lines (12 loc) • 603 B
JavaScript
//#region src/intlayerPolyfill.ts
const intlayerPolyfill = () => {
if (typeof global.structuredClone !== "function") global.structuredClone = (obj) => JSON.parse(JSON.stringify(obj));
if (typeof window !== "undefined") {
if (typeof window.addEventListener !== "function") window.addEventListener = () => null;
if (typeof window.removeEventListener !== "function") window.removeEventListener = () => null;
if (typeof window.postMessage !== "function") window.postMessage = () => null;
}
};
//#endregion
exports.intlayerPolyfill = intlayerPolyfill;
//# sourceMappingURL=intlayerPolyfill.cjs.map