public/js/pipe.js
function featureDetector(){
    // Check if client can access file sytem (from Modernizer)  
    var elem = document.createElement('input')
    elem.type = 'file'
    window.Photopipe.hasFileSystem = !elem.disabled

    // Check if client has media capture access 
    window.Photopipe.hasMediaCapture = !!navigator.getUserMedia || 
                                      !!navigator.webkitGetUserMedia || 
                                      !!navigator.mozGetUserMedia || 
                                      !!navigator.msGetUserMedia
                          
    // Check if client has the download attribute for anchor tags 
    window.Photopipe.hasDownloadAttribute = ("download" in document.createElement("a"))  
    
    // Check for localstorage
    var storage
    try{ if(localStorage.getItem) {storage = localStorage} }catch(e){}
    window.Photopipe.hasLocalStorage = storage                                
    
  }
function featureDetector(){
    // Check if client can access file sytem (from Modernizer)  
    var elem = document.createElement('input')
    elem.type = 'file'
    window.Photopipe.hasFileSystem = !elem.disabled

    // Check if client has media capture access 
    window.Photopipe.hasMediaCapture = !!navigator.getUserMedia || 
                                      !!navigator.webkitGetUserMedia || 
                                      !!navigator.mozGetUserMedia || 
                                      !!navigator.msGetUserMedia
                          
    // Check if client has the download attribute for anchor tags 
    window.Photopipe.hasDownloadAttribute = ("download" in document.createElement("a"))  
    
    // Check for localstorage
    var storage
    try{ if(localStorage.getItem) {storage = localStorage} }catch(e){}
    window.Photopipe.hasLocalStorage = storage                                
    
  }
function featureDetector ( ) { // Check if client can access file sytem (from Modernizer)   var elem = document . createElement ( 'input' ) elem . type = 'file' window . Photopipe . hasFileSystem = ! elem . disabled // Check if client has media capture access  window . Photopipe . hasMediaCapture = ! ! navigator . getUserMedia || ! ! navigator . webkitGetUserMedia || ! ! navigator . mozGetUserMedia || ! ! navigator . msGetUserMedia // Check if client has the download attribute for anchor tags  window . Photopipe . hasDownloadAttribute = ( "download" in document . createElement ( "a" ) ) // Check for localstorage var storage try { if ( localStorage . getItem ) { storage = localStorage } } catch ( e ) { } window . Photopipe . hasLocalStorage = storage }
Determine browser capabilities
Determine browser capabilities