woo command now working too

This commit is contained in:
Peter Cottle 2013-01-13 11:32:45 -08:00
parent 24139d8ec5
commit 88f5c2d2b3
3 changed files with 23 additions and 2 deletions

View file

@ -132,6 +132,13 @@ var init = function() {
].join(''));
});
}
if (/command=/.test(window.location.href)) {
var commandRaw = window.location.href.split('command=')[1].split('&')[0];
var command = unescape(commandRaw);
sandbox.mainVis.customEvents.on('gitEngineReady', function() {
eventBaton.trigger('commandSubmitted', command);
});
}
if (/(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent)) {
setTimeout(function() {
eventBaton.trigger('commandSubmitted', 'iOS alert');