Skip to content

Commit

Permalink
Merge pull request #6904 from ewinslow/mobile-web-app-capable-b6896
Browse files Browse the repository at this point in the history
fix(aalborg_theme): Support fullscreen mode if user adds app to homescreen
  • Loading branch information
ewinslow committed Jun 5, 2014
2 parents 5df51a1 + 2a19307 commit 0c7aa5d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mod/aalborg_theme/start.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,17 @@ function aalborg_theme_setup_head($hook, $type, $data) {
'name' => 'viewport',
'content' => 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0',
);

// https://developer.chrome.com/multidevice/android/installtohomescreen
$data['metas'][] = array(
'name' => 'mobile-web-app-capable',
'content' => 'yes',
);

$data['metas'][] = array(
'name' => 'apple-mobile-web-app-capable',
'content' => 'yes',
);

$data['links'][] = array(
'rel' => 'apple-touch-icon',
Expand Down

0 comments on commit 0c7aa5d

Please sign in to comment.