Issue-13813: Use new endpoints for browser (#13827)
* Bump browswer endpointsf43f43cc...924820c1
Rebase Rebase * Bump endpoints * Bump status-gof43f43cc...f43f43cc
Rebase * typo
This commit is contained in:
parent
8e3258769e
commit
2b3d59e8c1
|
@ -50,7 +50,7 @@
|
|||
{:events [:browser.ui/remove-browser-pressed]}
|
||||
[{:keys [db]} browser-id]
|
||||
{:db (update-in db [:browser/browsers] dissoc browser-id)
|
||||
::json-rpc/call [{:method "browsers_deleteBrowser"
|
||||
::json-rpc/call [{:method "wakuext_deleteBrowser"
|
||||
:params [browser-id]
|
||||
:on-success #()}]})
|
||||
|
||||
|
@ -59,7 +59,7 @@
|
|||
[{:keys [db]}]
|
||||
{:db (dissoc db :browser/browsers)
|
||||
::json-rpc/call (for [browser-id (keys (get db :browser/browsers))]
|
||||
{:method "browsers_deleteBrowser"
|
||||
{:method "wakuext_deleteBrowser"
|
||||
:params [browser-id]
|
||||
:on-success #()})})
|
||||
|
||||
|
@ -96,7 +96,7 @@
|
|||
{:db (update-in db
|
||||
[:browser/browsers browser-id]
|
||||
merge updated-browser)
|
||||
::json-rpc/call [{:method "browsers_addBrowser"
|
||||
::json-rpc/call [{:method "wakuext_addBrowser"
|
||||
:params [(select-keys updated-browser [:browser-id :timestamp :name :dapp? :history :history-index])]
|
||||
:on-success #()}]}))
|
||||
|
||||
|
|
|
@ -328,7 +328,7 @@
|
|||
|
||||
(fx/defn initialize-browser [_]
|
||||
{::json-rpc/call
|
||||
[{:method "browsers_getBrowsers"
|
||||
[{:method "wakuext_getBrowsers"
|
||||
:on-success #(re-frame/dispatch [::initialize-browsers %])}
|
||||
{:method "browsers_getBookmarks"
|
||||
:on-success #(re-frame/dispatch [::initialize-bookmarks %])}
|
||||
|
|
Loading…
Reference in New Issue