1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2024-11-23 17:42:46 +01:00
TweetDuck/resources/Content/tweetdeck/disable_clipboard_formatting.js

11 lines
238 B
JavaScript

import { $TD } from "../api/bridge.js";
/**
* Removes HTML styles when copying HTML content to clipboard.
*/
export default function() {
document.addEventListener("copy", function() {
window.setTimeout($TD.fixClipboard, 0);
});
};