mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 00:18:56 +02:00
woo command now working too
This commit is contained in:
parent
24139d8ec5
commit
88f5c2d2b3
3 changed files with 23 additions and 2 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue