Logic tweak re hideButton

This commit is contained in:
Matt Pass 2018-07-06 16:15:08 +01:00 committed by GitHub
parent f71374277a
commit 7b94a661ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -724,7 +724,7 @@ btcpWidget.doOverlay = function(vis) {
}
// Add widget to merchants site where JS script is included
if (btcpWidget.hideButton) {
if (!btcpWidget.data.hideButton) {
get(btcpWidget.id).insertAdjacentElement('afterend',btcpWidget.widget);
}