Skip to content

Commit

Permalink
1.2 修正部分页面无法保存样式或图片的情况
Browse files Browse the repository at this point in the history
  • Loading branch information
ywzhaiqi committed Jul 18, 2014
1 parent 360990e commit 4e5c0a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/chrome/content/scrapbook-sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ var ExportToWiz = {
return;

var id = ScrapBookData.getProperty(aRes, "id"),
type = ScrapBookData.getProperty(aRes, "type"),
title = ScrapBookData.getProperty(aRes, "title"),
url = ScrapBookData.getProperty(aRes, "source");

// 当 type 为 site 时,有多个 html,会有问题

var aFolder = ScrapBookUtils.getContentDir(id),
indexPath = aFolder.path + '\\index.html',
preUrl = url.replace(/[^\/]+\/?$/, '');
preUrl = url.replace(/[^\/]*$/, '');

var contentConfig = "[Common]\r\nURL=" + url +
"\r\nTitle=" + title +
Expand All @@ -45,6 +48,7 @@ var ExportToWiz = {
contentConfig += "\r\nCount=" + resourceFilesIndex;

// console.log(contentConfig);
console.log('111', type)

this.launchWiz(contentConfig);
},
Expand Down
2 changes: 1 addition & 1 deletion src/install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Description about="urn:mozilla:install-manifest">
<em:type>2</em:type> <!-- 2 : Extension -->
<em:id>exportscrapbooktowiz@ywzhaiqi</em:id>
<em:version>1.1</em:version>
<em:version>1.2</em:version>
<em:name>ExportScrapbookToWiz</em:name>
<em:description>导出 Scrapbook 条目到 Wiz</em:description>
<em:creator>ywzhaiqi</em:creator>
Expand Down

0 comments on commit 4e5c0a8

Please sign in to comment.