mirror of
https://github.com/logseq/logseq.git
synced 2026-04-27 15:45:00 +00:00
fix: protocol events can't be received on Electron
This commit is contained in:
@@ -67,18 +67,14 @@
|
||||
|
||||
(callback #js {:path path'}))))
|
||||
|
||||
(.registerHttpProtocol
|
||||
protocol LSP_SCHEME
|
||||
(fn [^js request callback]
|
||||
(prn "Request: " (gobj/get request "url"))
|
||||
(js/console.dir request)
|
||||
;; placeholder
|
||||
))
|
||||
(.on app "open-url"
|
||||
(fn [event url]
|
||||
(prn {:url url
|
||||
:event event})))
|
||||
|
||||
#(do
|
||||
(.unregisterProtocol protocol FILE_LSP_SCHEME)
|
||||
(.unregisterProtocol protocol "assets")
|
||||
(.unregisterProtocol protocol LSP_SCHEME)))
|
||||
(.unregisterProtocol protocol "assets")))
|
||||
|
||||
(defn- handle-export-publish-assets [_event html custom-css-path repo-path asset-filenames output-path]
|
||||
(p/let [app-path (. app getAppPath)
|
||||
|
||||
Reference in New Issue
Block a user