fixed CK
Signed-off-by: Goran Jovic <goranjovic@gmail.com>
This commit is contained in:
parent
a3b2bc1b87
commit
36ef541037
|
@ -135,13 +135,13 @@
|
||||||
:on-load #(re-frame/dispatch [:browser/loading-started])
|
:on-load #(re-frame/dispatch [:browser/loading-started])
|
||||||
:on-error #(re-frame/dispatch [:browser/error-occured])
|
:on-error #(re-frame/dispatch [:browser/error-occured])
|
||||||
:injected-on-start-loading-java-script (str (not opt-in?) js-res/web3
|
:injected-on-start-loading-java-script (str (not opt-in?) js-res/web3
|
||||||
(get-inject-js url)
|
|
||||||
(if opt-in?
|
(if opt-in?
|
||||||
(js-res/web3-opt-in-init (str network-id))
|
(js-res/web3-opt-in-init (str network-id))
|
||||||
(js-res/web3-init
|
(js-res/web3-init
|
||||||
rpc-url
|
rpc-url
|
||||||
(ethereum/normalized-address address)
|
(ethereum/normalized-address address)
|
||||||
(str network-id))))
|
(str network-id)))
|
||||||
|
(get-inject-js url))
|
||||||
:injected-java-script js-res/webview-js}])
|
:injected-java-script js-res/webview-js}])
|
||||||
(when (or loading? resolving?)
|
(when (or loading? resolving?)
|
||||||
[react/view styles/web-view-loading
|
[react/view styles/web-view-loading
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
;; Browser (webview) configuration
|
;; Browser (webview) configuration
|
||||||
;; :inject-js is a map of {<domain> <js-code>}, JS code will be injected if the domain name matches (www. is stripped away)
|
;; :inject-js is a map of {<domain> <js-code>}, JS code will be injected if the domain name matches (www. is stripped away)
|
||||||
|
|
||||||
{:inject-js {"cryptokitties.co" "; if (!window.chrome) { window.chrome = { webstore: true }; }"}}
|
{:inject-js {"cryptokitties.co" "; if (!window.chrome) { window.chrome = { webstore: true }; window.ethereum.isMetaMask = web3.currentProvider.isMetaMask = true; }"}}
|
||||||
|
|
Loading…
Reference in New Issue