mirror of
https://github.com/Jonnyan404/memos-bber.git
synced 2026-04-25 03:58:37 +09:00
2023.03.19
This commit is contained in:
+3
-1
@@ -66,6 +66,8 @@ get_info(function (info) {
|
||||
setTimeout(get_info, 1)
|
||||
})
|
||||
|
||||
$("textarea[name=text]").focus()
|
||||
|
||||
//监听输入结束,保存未发送内容到本地
|
||||
$("textarea[name=text]").blur(function () {
|
||||
chrome.storage.sync.set(
|
||||
@@ -147,7 +149,7 @@ function uploadImage(data) {
|
||||
if (info.status) {
|
||||
let old_name = data.name.split('.');
|
||||
let file_ext = data.name.split('.').pop();
|
||||
let now = dayjs().format('YYYYMMDDHHmm')
|
||||
let now = dayjs().format('YYYYMMDDHHmmss')
|
||||
let new_name = old_name[0] + '_' + now + '.' + file_ext;
|
||||
formData.append('file', data, new_name)
|
||||
$.ajax({
|
||||
|
||||
Reference in New Issue
Block a user