From b080941fa50efa0f0718c650af23831c58921969 Mon Sep 17 00:00:00 2001 From: Benjamin Behringer Date: Wed, 13 Dec 2017 10:50:36 +0100 Subject: [PATCH] Work around missing clipboardData types in older Safari versions --- src/plugins/core/events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/core/events.js b/src/plugins/core/events.js index 8f40bf12..1c6daa50 100644 --- a/src/plugins/core/events.js +++ b/src/plugins/core/events.js @@ -187,7 +187,7 @@ define([ * * Chrome on android provides `ClipboardEvent.clipboardData` but the types array is not filled */ - if (event.clipboardData && event.clipboardData.types.length > 0) { + if (event.clipboardData && event.clipboardData.types && event.clipboardData.types.length > 0) { event.preventDefault(); if (Immutable.List(event.clipboardData.types).includes('text/html')) {