diff options
| author | mitsugu oyama | 2010-12-06 15:56:19 +0900 |
|---|---|---|
| committer | mitsugu oyama | 2010-12-06 15:56:19 +0900 |
| commit | a0fac9a6fb5d0b77bdd153758248a28a211054ac (patch) | |
| tree | 384e62dce0104a1b546a6f8bf1aa1ff3a04f0489 | |
| parent | c7693384d0b8eff3ced8cc08ba5b455163006cd5 (diff) | |
| download | vimperator-plugins-a0fac9a6fb5d0b77bdd153758248a28a211054ac.tar.bz2 | |
fix cant save image file ex. hogehoge.jpg?1038735
| -rw-r--r-- | pixiv.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -128,6 +128,9 @@ commands.addUserCommand( let truePixivImg=function(){ let fileName=imgUrl.substr(imgUrl.lastIndexOf('/')); + if (-1!=fileName.indexOf('?')){ + fileName=fileName.substr(0,fileName.indexOf('?')); + } let tmpPath=savePath+fileName; let instream=xhrImg.responseText; let aFile=Cc["@mozilla.org/file/local;1"] |
