lynx-intlayer
Version:
A Lynx plugin for seamless internationalization (i18n) and localization (l10n) of your mobile app.
20 lines • 601 B
JavaScript
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;
}
}
};
export {
intlayerPolyfill
};
//# sourceMappingURL=intlayerPolyfill.mjs.map