Skip to content

Commit 87b68fd

Browse files
author
Pablo Vieira
committed
Merge branch 'fix-ios-fullscreen'
2 parents a459525 + 56d5114 commit 87b68fd

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

_includes/analytics.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
{% if site.ga_tracking_code %}
22
<!-- Google Analytics -->
33
<script>
4-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
5-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
6-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
7-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
8-
4+
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
95
ga('create', '{{ site.ga_tracking_code }}', 'auto');
106
ga('send', 'pageview');
117
</script>
8+
<script async src='https://www.google-analytics.com/analytics.js'></script>
129
<!-- Google Analytics end -->
1310
{% endif %}
1411

_includes/head.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<meta name="apple-mobile-web-app-title" content="{{ site.app_name }}">
1717
<meta name="apple-mobile-web-app-capable" content="yes">
1818
<meta name="apple-mobile-web-app-status-bar-style" content="black">
19+
<meta name="mobile-web-app-capable" content="yes">
1920

2021
{% capture page_title %}{% if page.title %}{{ " &middot; pv8.io" | prepend: page.title }}{% else %}{{ site.title }}{% endif %}{% endcapture %}
2122
{% capture page_description %}{% if page.excerpt %}{{ page.excerpt | markdownify | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.meta.description }}{% endif %}{% endcapture %}

_includes/ios-fullscreen.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script type="text/javascript">
2-
$(document).ready(function(){
2+
(function() {
33
/* PWA: iOS web full screen seamless experience */
44
if(window.navigator.standalone == true) {
55
/* all links remain in web app mode */
@@ -8,5 +8,5 @@
88
return false;
99
});
1010
}
11-
});
11+
})();
1212
</script>

0 commit comments

Comments
 (0)