Skip to content

Commit

Permalink
fix: slightly edited the statblock css class picker for background logos
Browse files Browse the repository at this point in the history
  • Loading branch information
silentjames committed Mar 14, 2024
1 parent bc77ce1 commit e62ff5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion js/WoDCharsheets-en.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ sleep(120).then(() => {


// find the statblock's layout name and active tab that has it
const statblockClassList = document.querySelector('.workspace-leaf.mod-active .obsidian-statblock-plugin.statblock').classList
var findClasses = document.querySelector('.workspace-leaf.mod-active .obsidian-statblock-plugin.statblock')
const statblockClassList = findClasses.classList
var allClasses = statblockClassList.value.toString()
var regex = /[a-z]{3}-[a-z]{1}20-[a-z-]{0,20}/gm;
var statblockCSSclass = '.' + allClasses.match(regex);
Expand Down
3 changes: 2 additions & 1 deletion js/WoDCharsheets.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ sleep(120).then(() => {


// найти активную открытую вкладку для вампирского статблока
const statblockClassList = document.querySelector('.workspace-leaf.mod-active .obsidian-statblock-plugin.statblock').classList
var findClasses = document.querySelector('.workspace-leaf.mod-active .obsidian-statblock-plugin.statblock')
const statblockClassList = findClasses.classList
var allClasses = statblockClassList.value.toString()
var regex = /[a-z]{3}-[a-z]{1}20-[a-z-]{0,20}/gm;
var statblockCSSclass = '.' + allClasses.match(regex);
Expand Down

0 comments on commit e62ff5b

Please sign in to comment.