Skip to content

Commit

Permalink
Added homescreen icon and meta tags for app to operate in web app mod…
Browse files Browse the repository at this point in the history
…e on iOS and Android.
  • Loading branch information
JangoSteve committed Sep 15, 2014
1 parent 062115d commit f97ccb1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
$.data(document, "current-user", <%= json_escape(current_user_data.to_json.html_safe) %>);
<% end %>
<%- end %>
<!-- Android web app tags //-->
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="/kandan-icon-192x192.png">
<!-- Apple web app tags //-->
<link rel="apple-touch-icon" sizes="192x192" href="/kandan-icon-192x192.png">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
</head>
<body id="kandan" data-kandan-config="<%= Kandan::Config.to_json %>">
<% if content_for? :sidebar %>
Expand Down
Binary file added public/kandan-icon-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f97ccb1

Please sign in to comment.