提交 525bda42 编写于 作者: A acgotaku311

[ci skip] update crx and release

上级 5a7f749c
无法预览此类型文件
......@@ -20,8 +20,7 @@ const httpSend = ({ url, options }, resolve, reject) => {
try {
const json = JSON.parse(data)
resolve(json)
}
catch {
} catch {
resolve(data)
}
})
......@@ -47,7 +46,7 @@ chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) {
})
return true
case 'configData':
for (let key in request.data) {
for (const key in request.data) {
localStorage.setItem(key, request.data[key])
}
break
......@@ -84,8 +83,8 @@ const getCookies = (details) => {
return new Promise(function (resolve) {
const list = details.map(item => getCookie(item))
Promise.all(list).then(function (cookies) {
let obj = {}
for (let item of cookies) {
const obj = {}
for (const item of cookies) {
if (item !== null) {
obj[item.name] = item.value
}
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册