Add snapshot to controlbar.

This commit is contained in:
Kenshin 2019-12-19 12:48:53 +08:00
parent 21a390df10
commit d4ccb91851
3 changed files with 7 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 441 B

View File

@ -109,7 +109,7 @@ export default class ReadCtlbar extends React.Component {
break;
default:
if ( type.indexOf( "_" ) > 0 && type.startsWith( "share" ) ||
[ "fullscreen", "save", "markdown", "png", "epub", "pdf", "kindle", "temp", "bear", "ulysses", "html", "offlinehtml", "dropbox", "pocket", "instapaper", "linnk", "yinxiang","evernote", "onenote", "gdrive", "jianguo", "yuque", "notion", "youdao" ].includes( type )) {
[ "fullscreen", "save", "markdown", "png", "epub", "pdf", "kindle", "temp", "bear", "ulysses", "html", "offlinehtml", "snapshot", "dropbox", "pocket", "instapaper", "linnk", "yinxiang","evernote", "onenote", "gdrive", "jianguo", "yuque", "notion", "youdao" ].includes( type )) {
const [ title, desc, content ] = [ $( "sr-rd-title" ).text().trim(), $( "sr-rd-desc" ).text().trim(), $( "sr-rd-content" ).html().trim() ];
output.Action( type, title, desc, content );
}

View File

@ -310,7 +310,12 @@ const readItems = {
"name" : "导出为 离线 HTML",
"icon" : ss.IconPath("offline_html_icon"),
"color": "#D4237A",
}
},
"snapshot" : {
"name" : "截图",
"icon" : ss.IconPath("snapshot_icon"),
"color": "#D4237A",
},
},
},
"send" : {