Skip to content

Commit

Permalink
Use not innerHTML but value in textarea for changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
2Abendsegler authored Nov 24, 2023
1 parent 779121e commit 857ae99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gc_little_helper_II.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4743,7 +4743,7 @@ var mainGC = function() {
var signature = getValue((isTB ? "settings_tb_signature" : "settings_log_signature"), "");
if (!logtext.includes(signature.replace(/^\s*/, ''))) {
let text = (logfield.value != '' ? logfield.value + '\n' : '') + replacePlaceholder(signature);
logfield.innerHTML = text;
logfield.value = text;
}
if (!$('.gclh_signature')[0]) $('#gc-md-editor_md').addClass('gclh_signature');
logfield.dispatchEvent(new Event('input'));
Expand Down

0 comments on commit 857ae99

Please sign in to comment.