Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
xfgryujk committed Aug 13, 2018
2 parents 8083e72 + 53c2dc0 commit 1e6f54e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "weibo-img-crypto",
"version": "1.3.2",
"version": "1.3.3",
"description": "Automatically encrypt images before uploading them to Weibo.",
"author": "xfgryujk <[email protected]>",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion src/gui/gui.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</a>
</el-tooltip>

<el-dialog title="weibo-img-crypto v1.3.2" :visible.sync="dialogVisible">
<el-dialog title="weibo-img-crypto v1.3.3" :visible.sync="dialogVisible">
<el-tabs>
<el-tab-pane label="基础">
<el-form label-width="100px">
Expand Down
2 changes: 1 addition & 1 deletion src/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ function hookContextMenu () {
let originImg = event.target
if (getConfig().enableDecryption &&
originImg instanceof window.Image) {
// event.preventDefault() // 为了右键保存图片这里先注释掉了
if (originImg.src.startsWith('data:')) { // 如果是'data:'开头说明已经解密过了
return
}
event.preventDefault() // 解密时屏蔽右键菜单
decrypt(originImg).then(url => {
if (url) {
originImg.src = url
Expand Down
2 changes: 1 addition & 1 deletion weibo-img-crypto.js

Large diffs are not rendered by default.

0 comments on commit 1e6f54e

Please sign in to comment.