From eaf08c45d9546613c6c8d950a0e488c4c6e5669d Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 20 Aug 2018 09:20:24 -0400 Subject: [PATCH] dont use clipboard writeText api --- jslib | 2 +- src/services/webPlatformUtils.service.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/jslib b/jslib index bf9a9c5f9f..b64757132f 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit bf9a9c5f9fb5933faeeb07a85f127373ebfe7284 +Subproject commit b64757132faf1ebb5438bec00720c58604fd29f6 diff --git a/src/services/webPlatformUtils.service.ts b/src/services/webPlatformUtils.service.ts index 9ecc0f568b..2fcc17df13 100644 --- a/src/services/webPlatformUtils.service.ts +++ b/src/services/webPlatformUtils.service.ts @@ -216,9 +216,7 @@ export class WebPlatformUtilsService implements PlatformUtilsService { } else if (options && options.doc) { doc = options.doc; } - if ((win as any).navigator.clipboard && (win as any).navigator.clipboard.writeText) { - (win as any).navigator.clipboard.writeText(text); - } else if ((win as any).clipboardData && (win as any).clipboardData.setData) { + 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')) {