From 5c9b11227c3accbc95d1260f7d49d7331ef75c13 Mon Sep 17 00:00:00 2001 From: life Date: Sun, 15 Nov 2015 22:24:36 +0800 Subject: [PATCH] save as --- node_modules/file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node_modules/file.js b/node_modules/file.js index 283fa9b0..c35d1def 100644 --- a/node_modules/file.js +++ b/node_modules/file.js @@ -660,7 +660,7 @@ var File = { downloadImg: function(src, callback) { var me = this; // 本地的 - if(src.indexOf('http://127.0.0.1') != -1) { + if(src.indexOf('http://127.0.0.1') != -1 || src.indexOf('leanote://') != -1) { var ret = /fileId=([a-zA-Z0-9]{24})/.exec(src); if(ret && ret.length == 2) { var fileId = ret[1];