mirror of
https://gitee.com/bitdance-team/chrome-extension
synced 2025-10-07 08:25:15 +08:00
small bug fixed.
This commit is contained in:
@@ -55,7 +55,7 @@ chrome.runtime.onMessage.addListener((req, sender, res) => {
|
||||
console.log("capture结束")
|
||||
res({ message: 'image', image: cropped })
|
||||
// 回调有问题,参数么有传回去,使用以下变通方式直接转换为可下载的文件
|
||||
var link = document.createElement('a'); link.download = "学生助手 屏幕截图 " + Date.now(); link.href = cropped; link.click();
|
||||
var link = document.createElement('a'); link.download = "学生助手截图-" + Date.now(); link.href = cropped; link.click();
|
||||
})
|
||||
})
|
||||
})
|
||||
|
@@ -62,6 +62,7 @@ var capture = (force) => {
|
||||
message: 'capture', senderId: "screenshot", area: selection, dpr: devicePixelRatio
|
||||
}, (res) => {
|
||||
console.log("capture回调结果:", res)
|
||||
return // 变通
|
||||
overlay(false)
|
||||
selection = null
|
||||
save(res.image, config.format, config.save)
|
||||
|
Reference in New Issue
Block a user