Changeset 79

Show
Ignore:
Timestamp:
08/01/08 22:41:09 (4 months ago)
Author:
bi..@lilyapp.org
Message:

fix bug # 37

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lily/lily/chrome/content/externals/qt.js

    r70 r79  
    388388        function checkURL(url,init) { 
    389389                var protocol = getProtocol(processURL(url)); 
    390                 return (protocol=="http"||protocol=="chrome"||protocol=="file"); 
     390                return ((protocol=="http"||protocol=="chrome"||protocol=="file")&&LilyUtils.hasExtension(url)); 
    391391        } 
    392392         
     
    483483        this.document.addEventListener("qt_load",function(e){ 
    484484                if(e.target.id==thisPtr.createElID("qt")) { 
    485                         setTimeout(function(){isLoaded(true);},250);   
     485                        setTimeout(function(){isLoaded(true);},500);   
    486486                } 
    487487        },false); 
  • trunk/lily/lily/chrome/content/utils.js

    r76 r79  
    13201320        */ 
    13211321        hasExtension: function(str) { 
    1322                 return str.match(/\.\S{2,4}$/); 
     1322                if(str&&str.match) { 
     1323                        return str.match(/\.\S{2,4}$/); 
     1324                } else { 
     1325                        return false; 
     1326                } 
    13231327        },       
    13241328