Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
cweirup committed Jul 23, 2021
1 parent 0541383 commit a056aa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Joplin Clipper Extension/SafariExtensionHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ class SafariExtensionHandler: SFSafariExtensionHandler {

//let noteToSend = Resource<Note>(url: URL(string: "http://localhost:41184/notes")!, method: .post(newNote))
let noteToSend = Resource<Note>(url: notesUrl!, params: tokenQuery, method: .post(newNote))
// NSLog(String(data: noteToSend.urlRequest.httpBody!, encoding: .utf8)!)
// NSLog(noteToSend.urlRequest.url?.absoluteString ?? "Error parsing URL for POST")
// os_log(String(data: noteToSend.urlRequest.httpBody!, encoding: .utf8)!)
// os_log(noteToSend.urlRequest.url?.absoluteString ?? "Error parsing URL for POST")
URLSession.shared.load(noteToSend) { data in
if (data?.id) != nil {
message = "Note created!"
Expand Down

0 comments on commit a056aa7

Please sign in to comment.