diff --git a/custom-login/package.json b/custom-login/package.json index 0a084cc..fcf190b 100644 --- a/custom-login/package.json +++ b/custom-login/package.json @@ -17,8 +17,7 @@ "react-dom": "^17.0.2", "react-router-dom": "5.2.0", "semantic-ui-css": "2.4.1", - "semantic-ui-react": "2.1.5", - "text-encoding": "0.7.0" + "semantic-ui-react": "2.1.5" }, "devDependencies": { "@vitejs/plugin-react": "^4.6.0", diff --git a/custom-login/src/polyfills.js b/custom-login/src/polyfills.js index 3afc821..6fa25ca 100644 --- a/custom-login/src/polyfills.js +++ b/custom-login/src/polyfills.js @@ -10,9 +10,10 @@ * See the License for the specific language governing permissions and limitations under the License. */ -// polyfill TextEncoder for IE Edge -import { TextEncoder } from 'text-encoding'; +// Example: for polyfilling TextEncoder for IE Edge +// +// import { TextEncoder } from 'text-encoding'; -if (typeof window.TextEncoder === 'undefined') { - window.TextEncoder = TextEncoder; -} +// if (typeof window.TextEncoder === 'undefined') { +// window.TextEncoder = TextEncoder; +// } diff --git a/okta-hosted-login/package.json b/okta-hosted-login/package.json index 33d9b63..af67250 100644 --- a/okta-hosted-login/package.json +++ b/okta-hosted-login/package.json @@ -16,7 +16,6 @@ "@okta/okta-auth-js": "*", "semantic-ui-css": "2.4.1", "semantic-ui-react": "2.1.5", - "text-encoding": "0.7.0", "@okta/okta-react": "^6.10.0" }, "devDependencies": { diff --git a/okta-hosted-login/src/polyfills.js b/okta-hosted-login/src/polyfills.js index 3afc821..6fa25ca 100644 --- a/okta-hosted-login/src/polyfills.js +++ b/okta-hosted-login/src/polyfills.js @@ -10,9 +10,10 @@ * See the License for the specific language governing permissions and limitations under the License. */ -// polyfill TextEncoder for IE Edge -import { TextEncoder } from 'text-encoding'; +// Example: for polyfilling TextEncoder for IE Edge +// +// import { TextEncoder } from 'text-encoding'; -if (typeof window.TextEncoder === 'undefined') { - window.TextEncoder = TextEncoder; -} +// if (typeof window.TextEncoder === 'undefined') { +// window.TextEncoder = TextEncoder; +// }