-
You will find the following code in refly/web/dom-patch.ts
-
SurveyJS
SurveyJS: Build JSON-Driven Surveys and Forms with Full Data Control. Add the SurveyJS UI components to your JS app (React/Angular/Vue3). Securely collect and analyze data without sending it to 3rd-party servers. Fully customizable, works with any backend, and ideal for data-heavy apps. Learn more.
-
// @ts-nocheck - Disable all type checking for this file // Workaround for removeChild and insertBefore errors when // google translate is enabled // See https://github.com/facebook/react/issues/11538#issuecomment-417504600. if (typeof Node === 'function' && Node.prototype) { const originalRemoveChild = Node.prototype.removeChild; Node.prototype.removeChild = function (child) { if (child.parentNode !== this) { if (console) { console.error('Cannot remove a child from a different parent', child, this); } return child; } // biome-ignore lint/style/noArguments: using arguments is simpler return originalRemoveChild.apply(this, arguments); }; const originalInsertBefore = Node.prototype.insertBefore; Node.prototype.insertBefore = function (newNode, referenceNode) { if (referenceNode && referenceNode.parentNode !== this) { if (console) { console.error( 'Cannot insert before a reference node from a different parent', referenceNode, this, ); } return newNode; } // biome-ignore lint/style/noArguments: using arguments is simpler return originalInsertBefore.apply(this, arguments); }; }