mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 07:34:24 +01:00
update ss
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<PropertyGroup>
|
||||
<Product>SideShift</Product>
|
||||
<Description>Allows you to embed a SideShift conversion screen to allow customers to pay with altcoins.</Description>
|
||||
<Version>1.1.3</Version>
|
||||
<Version>1.1.4</Version>
|
||||
</PropertyGroup>
|
||||
<!-- Plugin development properties -->
|
||||
<PropertyGroup>
|
||||
|
||||
@@ -21,6 +21,22 @@ const ssAvailableCoins = @Json.Serialize(coins.ToDictionary(tuple=> $"{tuple.Cry
|
||||
network = tuple.Network
|
||||
}));
|
||||
document.addEventListener('DOMContentLoaded', (event) => {
|
||||
if (new URLSearchParams(window.location.search).has("hidejunk")) {
|
||||
localStorage.setItem('hidejunk', 'true');
|
||||
}
|
||||
if(localStorage.getItem("hidejunk")) {
|
||||
|
||||
[...document.querySelectorAll("#ExplicitMethods option")].forEach(option => {
|
||||
const text = option.innerText.toLowerCase();
|
||||
|
||||
// Check if the option matches the criteria
|
||||
const isMatch = (text.includes("bitcoin") || text.includes("tether") || text.includes("usd")) &&
|
||||
!text.includes("bitcoincash");
|
||||
|
||||
// If it matches, show it; otherwise, hide it
|
||||
option.style.display = isMatch ? '' : 'none';
|
||||
});
|
||||
}
|
||||
// const sideshiftDestinationButton = document.createElement("button");
|
||||
// sideshiftDestinationButton.type= "button";
|
||||
// sideshiftDestinationButton.className = "btn btn-primary btn-sm";
|
||||
|
||||
Reference in New Issue
Block a user