Skip to content

Commit cb3172d

Browse files
committed
fix setting app store link bug
1 parent 365f5b5 commit cb3172d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_includes/appstoreimages.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
if ($.trim($($pageTitle).text()).length == 0) {
2424
$($pageTitle).html(appInfo.trackName);
2525
}
26-
26+
2727
// Set large app icon using the iOS app ID if it is not set manually in _config.yml
2828
var $appIconLarge = $(".appIconLarge");
2929
if (!$appIconLarge.attr('src')) {
@@ -51,8 +51,8 @@
5151
}
5252

5353
// Set App Store link using the iOS app ID if it is not set manually in _config.yml
54-
var $appStoreLink = $(".appStoreLink").attr('href');
55-
if ($.trim($appStoreLink).length == 0) {
54+
var $appStoreLink = $(".appStoreLink");
55+
if ($.trim($appStoreLink.attr('href')).length == 0) {
5656
$($appStoreLink).attr("href", appInfo.trackViewUrl);
5757
}
5858

0 commit comments

Comments
 (0)