Check for meta payment pointer first before attempting to load (#9722)
This commit is contained in:
parent
d200959809
commit
f4b50a11b4
1 changed files with 2 additions and 2 deletions
|
|
@ -3,9 +3,9 @@ function initializePaymentPointers() {
|
|||
var basePointer = document.getElementById('base-payment-pointer');
|
||||
var meta = document.querySelector("meta[name='monetization']");
|
||||
|
||||
if (userPointer) {
|
||||
if (userPointer && meta) {
|
||||
meta.content = userPointer.dataset.paymentPointer;
|
||||
} else if (basePointer) {
|
||||
meta.content = basePointer.dataset.paymentPointer;;
|
||||
meta.content = basePointer.dataset.paymentPointer;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue