From 8c452d3fa21952e6caadfc13445ed2c6d368f1c3 Mon Sep 17 00:00:00 2001 From: chylex <contact@chylex.com> Date: Wed, 10 Jan 2018 22:47:06 +0100 Subject: [PATCH] Fix clipboard html styles when copying text from notifications --- Resources/Scripts/notification.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Resources/Scripts/notification.js b/Resources/Scripts/notification.js index 3acd8729..dcf6b123 100644 --- a/Resources/Scripts/notification.js +++ b/Resources/Scripts/notification.js @@ -100,6 +100,12 @@ })(); // + // Block: Work around clipboard HTML formatting. + // + document.addEventListener("copy", function(e){ + window.setTimeout($TD.fixClipboard, 0); + }); + // Block: Setup a skip button. // if (!document.body.hasAttribute("td-example-notification")){