Skip to content

Commit

Permalink
Merge pull request #40 from r4ym0n/main
Browse files Browse the repository at this point in the history
Compatible with the new v1 API
  • Loading branch information
lmm214 authored May 23, 2024
2 parents f3aabb2 + 511a26d commit 8a72b05
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/jquery.min.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion js/oper.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ function get_info(callback) {
flag = true
}
returnObject.status = flag
if (!items.apiUrl.endsWith('/')) {
items.apiUrl += '/';
}
returnObject.apiUrl = items.apiUrl
returnObject.apiTokens = items.apiTokens
returnObject.hidetag = items.hidetag
Expand Down Expand Up @@ -581,7 +584,7 @@ function sendText() {
}
}
$.ajax({
url:info.apiUrl+'api/v1/memo',
url:info.apiUrl+'api/v1/memos',
type:"POST",
data:JSON.stringify({
'content': content,
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "__MSG_extName__",
"default_locale": "zh_CN",
"version": "2023.09.19",
"version": "2024.05.22",
"action": {
"default_popup": "popup.html",
"default_icon": "assets/logo_24x24.png",
Expand Down

0 comments on commit 8a72b05

Please sign in to comment.