mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-18 19:50:58 -04:00
Added "Skip Fourthwall Free Orders" setting
This commit is contained in:
@@ -82,6 +82,7 @@ const showPatreonMemberships = GetBooleanParam("showPatreonMemberships", true);
|
||||
const showKofiDonations = GetBooleanParam("showKofiDonations", true);
|
||||
const showTipeeeStreamDonations = GetBooleanParam("showTipeeeStreamDonations", true);
|
||||
const showFourthwallAlerts = GetBooleanParam("showFourthwallAlerts", true);
|
||||
const skipFourthwallFreeOrders = GetBooleanParam("skipFourthwallFreeOrders", true);
|
||||
|
||||
const furryMode = GetBooleanParam("furryMode", false);
|
||||
|
||||
@@ -2045,6 +2046,10 @@ function FourthwallOrderPlaced(data) {
|
||||
const itemImageUrl = data.variants[0].image;
|
||||
const fourthwallProductImage = `<img src="${itemImageUrl}" class="productImage"/>`;
|
||||
|
||||
// Skip free orders if the user has chosen to do so
|
||||
if (skipFourthwallFreeOrders && orderTotal == 0)
|
||||
return;
|
||||
|
||||
avatarDiv.innerHTML = fourthwallProductImage;
|
||||
|
||||
let contents = "";
|
||||
|
||||
@@ -517,6 +517,15 @@
|
||||
"defaultValue": true,
|
||||
"group": "Which donation messages do you want to see?"
|
||||
},
|
||||
{
|
||||
"id": "skipFourthwallFreeOrders",
|
||||
"label": "Skip Free Orders",
|
||||
"description": "If enabled, free orders from Fourthwall will be skipped.",
|
||||
"type": "checkbox",
|
||||
"defaultValue": true,
|
||||
"showIf": "showFourthwallAlerts",
|
||||
"group": "Which donation messages do you want to see?"
|
||||
},
|
||||
{
|
||||
"id": "furryMode",
|
||||
"label": "Furry Mode",
|
||||
|
||||
Reference in New Issue
Block a user