This commit is contained in:
JustAGenericUsername 2025-04-02 21:14:22 -04:00
parent 337811d22b
commit 7f9390d50e
1 changed files with 2 additions and 2 deletions

View File

@ -3939,7 +3939,7 @@ renderPostPixel(function(ctx){
if ((pixel.element == "sign") && pixel.sign){
ctx.font = `12pt Arial`
ctx.fillStyle = pixel.color;
ctx.fillText(pixel.sign = pixel.sign.replace(/\$\{([\w.\[\]]+)\}/g, (_, path) => {
ctx.fillText(pixel.sign.replace(/\$\{([\w.\[\]]+)\}/g, (_, path) => {
try {
const value = new Function('return globalThis.' + path)();
return typeof value === 'object' ? JSON.stringify(value) : value ?? '';
@ -3951,7 +3951,7 @@ renderPostPixel(function(ctx){
if (pixel.charge || pixel.chargeCD){
ctx.font = `12pt Arial`
ctx.fillStyle = pixel.color;
ctx.fillText(pixel.sign = pixel.sign.replace(/\$\{([\w.\[\]]+)\}/g, (_, path) => {
ctx.fillText(pixel.sign.replace(/\$\{([\w.\[\]]+)\}/g, (_, path) => {
try {
const value = new Function('return globalThis.' + path)();
return typeof value === 'object' ? JSON.stringify(value) : value ?? '';