Skip to content

Commit

Permalink
Pr/349 (#355)
Browse files Browse the repository at this point in the history
@RageInvader 
* added apple web app capable coding
* first part allows it to become a web app when adding to home screen
* the script part is to stop href links breaking out to safari, as web apps need to be javascript links

@lokenx
* Version increase

Closes #349
  • Loading branch information
mikhailbot committed May 18, 2016
1 parent 5be41f3 commit 18468f9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions client/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,14 @@
<!-- <link rel="stylesheet" href="/css/bootstrap.min.css"> -->
<!-- <link rel="stylesheet" href="/css/styles.css"> -->
<link rel="icon" href="favicon.ico">

<!-- Apple Web App Capable -->
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="apple-touch-icon" href="favicon.ico" />

<script>
(function(a,b,c){if(c in b&&b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&&(d.href.indexOf("http")||~d.href.indexOf(e.host))&&(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone")
</script>


</head>
2 changes: 1 addition & 1 deletion server/methods/admin/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Meteor.methods({
return "master";
},
getVersion: function () {
return "1.12.1";
return "1.13.0";
},
checkForUpdate : function () {
var branch = Meteor.call('getBranch');
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.12.1
1.13.0

2 comments on commit 18468f9

@RageInvader
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just quickly tested this out, the web app feature and links all work perfect, the Icon does not appear though, I will look into fixing this and give you an update.

@RageInvader
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have selected the favicon.co file instead of the apple-touch-icon.png

Please sign in to comment.