mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-21 23:14:25 +01:00
Changing page title during before and after payment
This commit is contained in:
@@ -46,6 +46,7 @@ window.BTCPayShopifyIntegrationModule = function () {
|
||||
};
|
||||
|
||||
function setOrderAsPaid() {
|
||||
document.title = document.title.replace("Review and pay!", "Thank you!");
|
||||
pageItems.mainHeader.innerText = "Thank you!",
|
||||
pageItems.orderConfirmed && (pageItems.orderConfirmed.style.display = "block"),
|
||||
pageItems.orderConfirmedDescription && (pageItems.orderConfirmedDescription.style.display = "block"),
|
||||
@@ -55,6 +56,7 @@ window.BTCPayShopifyIntegrationModule = function () {
|
||||
}
|
||||
|
||||
function showPaymentInstructions() {
|
||||
document.title = document.title.replace("Thank you!", "Review and pay!");
|
||||
pageItems.mainHeader && (pageItems.mainHeader.innerText = "Review and pay!"),
|
||||
pageItems.continueButton && (pageItems.continueButton.style.visibility = "hidden"),
|
||||
pageItems.checkMarkIcon && (pageItems.checkMarkIcon.style.visibility = "hidden"),
|
||||
|
||||
Reference in New Issue
Block a user