Changeset 35974

Show
Ignore:
Timestamp:
11/23/09 20:25:36 (4 years ago)
Author:
teramako
Message:

fix:bug

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/zip-de-download.js

    r35973 r35974  
    156156      let zipW = new zipWriter(); 
    157157      let urls = [url for each(url in urls)]; 
    158       liberator.assert(urls.length < 1, "None of URLs"); 
    159  
    160       if ((/\.zip$/i).test(path)){ 
     158      liberator.assert(urls.length > 0, "None of URLs"); 
     159 
     160      if (!(/\.zip$/i).test(path)){ 
    161161        path += ".zip"; 
    162162      }