Skip to content

Commit 0d9d464

Browse files
committed
Add iOS hooks
1 parent 4a4b28d commit 0d9d464

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

app/assets/javascripts/helpers.js

+10
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ function closeActivity() {
2626
}
2727
}
2828

29+
function iosLoaded() {
30+
// The iOS embedded environment has a header already, so hide the page one.
31+
$('header').hide();
32+
}
33+
34+
function iosNavigationTitle() {
35+
// The title to display in the iOS NavigationController.
36+
return $('.mdl-layout-title').text().trim();
37+
}
38+
2939
function fitInParent(element, focus, doFill, aspect, state) {
3040

3141
var parentElement = element.parentElement;

0 commit comments

Comments
 (0)