This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import isOnCordova from '../utils/is-on-cordova'; | |
export function initialize(container, application) { | |
application.deferReadiness(); | |
document.addEventListener('deviceready', function() { | |
application.advanceReadiness(); | |
}, false); | |
if(!isOnCordova()){ | |
document.dispatchEvent(new Event('deviceready')); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function git-branch-current() { | |
printf "%s\n" $(git branch 2> /dev/null | grep -e ^* | tr -d "\* ") | |
} | |
function git-branch-cleanup() { | |
local currentBranch=$(git-branch-current) | |
local otherBranch= | |
for otherBranch in $(git branch | grep -v $currentBranch) ; do | |
printf "Branch %s:\n" "$otherBranch" | |
printf " HEAD commit is: %s\n" "$(git log --oneline -n 1 $otherBranch)" |