Skip to content

Commit

Permalink
Merge pull request #2836 from Azmoria/Beta-Fix---issue-with-roll-buff…
Browse files Browse the repository at this point in the history
…s-in-iframe-player-sheet-windows

Beta Fix - issue with roll buffs in iframe player sheet windows
  • Loading branch information
Azmoria authored Jan 21, 2025
2 parents e7979e3 + ab8fd99 commit 9f2324c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1752,12 +1752,10 @@ function open_player_sheet(sheet_url, closeIfOpen = true) {
iframe.off("load").on("load", function(event) {
console.log("fixing up the character sheet");




let scripts = [
// External Dependencies
{ src: "jquery-3.6.0.min.js" },
{ src: "jquery.contextMenu.js" },
// AboveVTT Files
{ src: "DiceContextMenu/DiceContextMenu.js" },
{ src: "MonsterDice.js" },
Expand Down Expand Up @@ -1793,6 +1791,7 @@ function open_player_sheet(sheet_url, closeIfOpen = true) {


$(event.target).contents().find("head").append($(`<link type="text/css" rel="Stylesheet" href="${window.EXTENSION_PATH}DiceContextMenu/DiceContextMenu.css" />`));
$(event.target).contents().find("head").append($(`<link type="text/css" rel="Stylesheet" href="${window.EXTENSION_PATH}jquery.contextMenu.css" />`));
$(event.target).contents().find("head").append(`
<style>
button.avtt-roll-button,
Expand Down

0 comments on commit 9f2324c

Please sign in to comment.