diff --git a/apps/browser/src/services/browserPlatformUtils.service.ts b/apps/browser/src/services/browserPlatformUtils.service.ts index 2f4e232996..f74a4b6de3 100644 --- a/apps/browser/src/services/browserPlatformUtils.service.ts +++ b/apps/browser/src/services/browserPlatformUtils.service.ts @@ -235,12 +235,6 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService this.clipboardWriteCallback(text, clearMs); } }); - } else if ((win as any).clipboardData && (win as any).clipboardData.setData) { - // IE specific code path to prevent textarea being shown while dialog is visible. - (win as any).clipboardData.setData("Text", text); - if (!clearing && this.clipboardWriteCallback != null) { - this.clipboardWriteCallback(text, clearMs); - } } else if (doc.queryCommandSupported && doc.queryCommandSupported("copy")) { if (this.isChrome() && text === "") { text = "\u0000"; diff --git a/apps/web/src/app/core/web-platform-utils.service.ts b/apps/web/src/app/core/web-platform-utils.service.ts index c8b95538da..03a3f145b5 100644 --- a/apps/web/src/app/core/web-platform-utils.service.ts +++ b/apps/web/src/app/core/web-platform-utils.service.ts @@ -215,10 +215,7 @@ export class WebPlatformUtilsService implements PlatformUtilsService { } else if (options && options.doc) { doc = options.doc; } - if ((win as any).clipboardData && (win as any).clipboardData.setData) { - // IE specific code path to prevent textarea being shown while dialog is visible. - (win as any).clipboardData.setData("Text", text); - } else if (doc.queryCommandSupported && doc.queryCommandSupported("copy")) { + if (doc.queryCommandSupported && doc.queryCommandSupported("copy")) { const textarea = doc.createElement("textarea"); textarea.textContent = text; // Prevent scrolling to bottom of page in MS Edge.