Skip to content

Commit

Permalink
Merge pull request #2849 from Azmoria/Internal---fix-multiple-'send-t…
Browse files Browse the repository at this point in the history
…o-gamelog'-buttons

Internal - fix multiple 'send to gamelog' buttons
  • Loading branch information
Azmoria authored Jan 24, 2025
2 parents 16ad748 + a573b7b commit c6a2d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CharactersPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -1956,7 +1956,7 @@ function observe_character_sheet_changes(documentToObserve) {



if (mutationTarget.closest(".ct-game-log-pane").length == 0 && mutationTarget.find('.ct-game-log-pane').length == 0 && mutationTarget.find(".ct-sidebar__header").length > 0 && mutationTarget.find(".ddbc-html-content").length > 0 && mutationTarget.find("#castbutton").length == 0) {
if (mutationTarget.closest(".ct-game-log-pane").length == 0 && mutationTarget.find('.ct-game-log-pane').length == 0 && mutationTarget.find(".ct-sidebar__header").length > 0 && mutationTarget.find(".ddbc-html-content").length > 0 && $("#castbutton").length == 0) {
// we explicitly don't want this to happen in `.ct-game-log-pane` because otherwise it will happen to the injected gamelog messages that we're trying to send here
if(is_abovevtt_page() || (window.sendToTab !== undefined || window.sendToTabRPGRoller !== undefined)){
if(mutationTarget.hasClass('ct-sidebar__pane-content')){
Expand Down

0 comments on commit c6a2d77

Please sign in to comment.