From 8680c7b4896a22afb869093c6aa1c27dbf80c11f Mon Sep 17 00:00:00 2001 From: Mark Boas Date: Tue, 9 Nov 2021 16:26:34 +0100 Subject: [PATCH] 75 payment pointer intermittent bug --- js/hyperaudio-lite.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/hyperaudio-lite.js b/js/hyperaudio-lite.js index 540875b..089b579 100644 --- a/js/hyperaudio-lite.js +++ b/js/hyperaudio-lite.js @@ -426,7 +426,11 @@ class HyperaudioLite { }; checkPaymentPointer = element => { - let paymentPointer = element.getAttribute('data-wm'); + let paymentPointer = null; + + if (typeof(element) != "undefined") { + paymentPointer = element.getAttribute('data-wm'); + } if (paymentPointer !== null) { return paymentPointer;