Closed AbrahamBrookes closed 7 years ago
can you provided the url to the buy button for debugging purpose?
Sure, www.redlamp.com.au/myriad/shopify2.html
On 28 Mar 2017 4:06 AM, "Michelle Chen" notifications@github.com wrote:
can you provided the url to the buy button for debugging purpose?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Shopify/buy-button-js/issues/372#issuecomment-289535827, or mute the thread https://github.com/notifications/unsubscribe-auth/AH9FKKmFAidqdm-eEy2y_EwK7pKisKsPks5rp_rCgaJpZM4MqHta .
I found the culprit - I had extended the Object with my own rudimentary add/remove class functions. Removing the following code fixed the problem:
Object.prototype.addClass = function(clas) {
if (this.classList)
this.classList.add(clas);
else
this.className += ' ' + clas;
}
Object.prototype.remClass = function(clas) {
if (this.classList)
this.classList.remove(clas);
else
return;
}
Thanks!
I have implemented some shopify buy buttons on my site and they are working fine in all browsers except Chrome. In Chrome mobile my buttons don't appear at all. Chrome on a desktop displays the buttons fine but if I go into developer mode and turn on responsive viewports and refresh the page then I get an error in my console: