[PM-1085] Remove Internet Explorer support (#4863)
* SG-851 Refactor to only use clipboard.writeText * SG-851 Revert changes * PM-1085 Remove specific IE code
This commit is contained in:
parent
5bc4fa62ef
commit
df1a28838f
|
@ -235,12 +235,6 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
|
||||||
this.clipboardWriteCallback(text, clearMs);
|
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")) {
|
} else if (doc.queryCommandSupported && doc.queryCommandSupported("copy")) {
|
||||||
if (this.isChrome() && text === "") {
|
if (this.isChrome() && text === "") {
|
||||||
text = "\u0000";
|
text = "\u0000";
|
||||||
|
|
|
@ -215,10 +215,7 @@ export class WebPlatformUtilsService implements PlatformUtilsService {
|
||||||
} else if (options && options.doc) {
|
} else if (options && options.doc) {
|
||||||
doc = options.doc;
|
doc = options.doc;
|
||||||
}
|
}
|
||||||
if ((win as any).clipboardData && (win as any).clipboardData.setData) {
|
if (doc.queryCommandSupported && doc.queryCommandSupported("copy")) {
|
||||||
// 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")) {
|
|
||||||
const textarea = doc.createElement("textarea");
|
const textarea = doc.createElement("textarea");
|
||||||
textarea.textContent = text;
|
textarea.textContent = text;
|
||||||
// Prevent scrolling to bottom of page in MS Edge.
|
// Prevent scrolling to bottom of page in MS Edge.
|
||||||
|
|
Loading…
Reference in New Issue