Change const to var in user_subscription_tag (#13694)

This commit is contained in:
Joe Avila 2021-05-17 08:40:07 -07:00 committed by GitHub
parent e4ecfd2b9e
commit 51969518f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ class UserSubscriptionTag < LiquidTagBase
].freeze
SCRIPT = <<~JAVASCRIPT.freeze
const subscribeBtn = document.getElementById('subscribe-btn');
var subscribeBtn = document.getElementById('subscribe-btn');
function isUserSignedIn() {
return document.head.querySelector('meta[name="user-signed-in"][content="true"]') !== null;