status-mobile/src/status_im/utils/browser_config.edn

7 lines
380 B
Clojure
Raw Normal View History

;; 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 {"cryptokitties.co" "; if (!window.chrome) { window.chrome = { webstore: true };
if (ethereum) ethereum.isMetaMask = true;
if (web3 && web3.currentProvider) web3.currentProvider.isMetaMask = true; }"}}