Skip to content

Commit

Permalink
Misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nano2dev authored Feb 17, 2024
1 parent b6da4a0 commit 4fe5813
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions latest.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// NanoPay 1.0.75
// NanoPay 1.0.76
// https://github.com/fwd/NanoPay
// (c) Nano.to <[email protected]>
// Released under MIT License
Expand All @@ -12,7 +12,7 @@
let wall_success = null
var desktop_width = 960

if (window.NanoPay === undefined) window.NanoPay = { version: '1.0.75' }
if (window.NanoPay === undefined) window.NanoPay = { version: '1.0.76' }

if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
window.NanoPay.dark_mode = true
Expand Down Expand Up @@ -291,7 +291,6 @@

if (rpc_checkout.description) description = rpc_checkout.description
if (rpc_checkout.symbol) window.NanoPay.config.symbol = rpc_checkout.symbol
if (rpc_checkout.line_items) window.NanoPay.config.line_items = rpc_checkout.line_items
if (rpc_checkout.shipping) window.NanoPay.config.shipping = rpc_checkout.shipping
if (rpc_checkout.contact) window.NanoPay.config.contact = rpc_checkout.contact

Expand Down Expand Up @@ -487,7 +486,7 @@
<div style="display: ${config.line_items ? 'flex' : 'none'}" id="nano-pay-contact">
<div id="nano-pay-contact-label">${strings.line_items}</div>
<div id="nano-pay-line-items" style="line-height: 1.3;}">${config.line_items ? config.line_items.map(a => a.name).join(', ') : ''}</div>
<div id="nano-pay-line-items" style="line-height: 1.3;}">${config.line_items ? config.line_items.map(a => a.title || a.name).join(', ') : ''}</div>
</div>
<div style="display: ${config.contact ? 'flex' : 'none'}" onclick="window.NanoPay.configEmailAddress()" id="nano-pay-contact">
Expand Down

0 comments on commit 4fe5813

Please sign in to comment.