This commit is contained in:
Peter Cottle 2013-01-21 20:31:04 -08:00
parent 576823dbfd
commit ab5a752691
7 changed files with 35 additions and 31 deletions

View file

@ -139,10 +139,10 @@ var init = function() {
eventBaton.trigger('commandSubmitted', command);
});
}
if (/(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent)) {
setTimeout(function() {
eventBaton.trigger('commandSubmitted', 'iOS alert');
}, 600);
if (/(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent) || /android/i.test(navigator.userAgent)) {
sandbox.mainVis.customEvents.on('gitEngineReady', function() {
eventBaton.trigger('commandSubmitted', 'mobile alert');
});
}
};