Merge pull request #40 from r4ym0n/main

Compatible with the new v1 API
This commit is contained in:
林木木
2024-05-23 13:53:28 +08:00
committed by GitHub
3 changed files with 7 additions and 4 deletions
+2 -2
View File
File diff suppressed because one or more lines are too long
+4 -1
View File
@@ -22,6 +22,9 @@ function get_info(callback) {
flag = true flag = true
} }
returnObject.status = flag returnObject.status = flag
if (!items.apiUrl.endsWith('/')) {
items.apiUrl += '/';
}
returnObject.apiUrl = items.apiUrl returnObject.apiUrl = items.apiUrl
returnObject.apiTokens = items.apiTokens returnObject.apiTokens = items.apiTokens
returnObject.hidetag = items.hidetag returnObject.hidetag = items.hidetag
@@ -581,7 +584,7 @@ function sendText() {
} }
} }
$.ajax({ $.ajax({
url:info.apiUrl+'api/v1/memo', url:info.apiUrl+'api/v1/memos',
type:"POST", type:"POST",
data:JSON.stringify({ data:JSON.stringify({
'content': content, 'content': content,
+1 -1
View File
@@ -2,7 +2,7 @@
"manifest_version": 3, "manifest_version": 3,
"name": "__MSG_extName__", "name": "__MSG_extName__",
"default_locale": "zh_CN", "default_locale": "zh_CN",
"version": "2023.09.19", "version": "2024.05.22",
"action": { "action": {
"default_popup": "popup.html", "default_popup": "popup.html",
"default_icon": "assets/logo_24x24.png", "default_icon": "assets/logo_24x24.png",