Skip to content

Commit

Permalink
enhance(sync): use LSP_SCHEME
Browse files Browse the repository at this point in the history
  • Loading branch information
RCmerci committed Apr 4, 2022
1 parent f7370de commit 71ef218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/electron/electron/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
:event event}))

(let [parsed-url (js/URL. url)]
(when (and (= "logseq:" (.-protocol parsed-url))
(when (and (= (str LSP_SCHEME ":") (.-protocol parsed-url))
(= "auth-callback" (.-host parsed-url)))
(send-to-renderer "loginCallback" (.get (.-searchParams parsed-url) "code"))))))

Expand Down

0 comments on commit 71ef218

Please sign in to comment.