diff options
| author | Julie Lala <jules@okfoc.us> | 2015-08-17 09:10:25 -0400 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2015-08-17 09:10:25 -0400 |
| commit | 99795bd1552a481dcb8f23e010e836ef06856447 (patch) | |
| tree | 8d5e3264320a1ebb9b99195052b46d2bdd95bef2 /js | |
| parent | f75345e8373988118221935ef743e98bfa693ed8 (diff) | |
fix: import_colorcode used to bind events
Diffstat (limited to 'js')
| -rw-r--r-- | js/clipboard.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/js/clipboard.js b/js/clipboard.js index 680086a..7e683dc 100644 --- a/js/clipboard.js +++ b/js/clipboard.js @@ -75,7 +75,12 @@ var clipboard = (function () { }, import_colorcode: function (data, no_undo) { - data = data || import_textarea.value + if (data && data.preventDefault) { + data = import_textarea.value + } + else { + data = data || import_textarea.value + } var irssi_style_regex = /^\s*\/exec -out printf ("%b" )?"/; |
