diff --git a/build/chrome/data/html/popup.html b/build/chrome/data/html/popup.html index 4b94d48..62c853f 100644 --- a/build/chrome/data/html/popup.html +++ b/build/chrome/data/html/popup.html @@ -23,8 +23,9 @@
To use this extension, you must launch monero-wallet-cli in rpc mode. - This requires that you use an extra two flags as part of your launch script, --rpc-bind-ip and --rpc-bind-port. - Typically, you want to bind to your localhost IP, 127.0.0.1, and to port 18082. For example: + This requires that you use an extra three flags as part of your launch script, --rpc-bind-ip, --rpc-bind-port, and --user-agent. + Typically, you want to bind to your localhost IP, 127.0.0.1, and to port 18082. Your user agent should be a random string of characters and numbers - this acts to authenticate RPC requests to monero-wallet-cli. For example:
- monero-wallet-cli.exe --wallet-file <wallet name> --password <wallet password> --rpc-bind-ip 127.0.0.1 --rpc-bind-port 18082 + monero-wallet-cli.exe --wallet-file <wallet name> --password <wallet password> --rpc-bind-ip 127.0.0.1 --rpc-bind-port 18082 --user-agent <some random string>
For monero-wallet-cli to connect to your extension, you will need to tell the extension which port to listen on. If you used port 18082, you are ready to go. If not, open the extension's Settings page and set the correct port. + Each time you open the extension, you will be asked to authenticate yourself with your chosen User Agent.
- After starting monero-wallet-cli in rpc mode, check your chrome extension to see if it is connected online. - Click the extension icon in the upper right of your browser to open the extension popup. + After starting monero-wallet-cli in rpc mode, check your chrome extension to see if it can connect. + Click the extension icon in the upper right of your browser to open the extension popup and log in with your User Agent. It may take a few seconds for your extension to fully connect to monero-wallet-cli.
If you have followed the steps above correctly, you are almost ready to make a new wallet to use with the Monero Wallet extension. @@ -194,12 +195,23 @@
You can turn off your wallet from the extension by clicking "Stop Wallet" in the extension's menu. @@ -232,7 +244,7 @@
@@ -353,19 +372,19 @@
To use this extension, you must launch monero-wallet-cli in rpc mode. - This requires that you use an extra two flags as part of your launch script, --rpc-bind-ip and --rpc-bind-port. - Typically, you want to bind to your localhost IP, 127.0.0.1, and to port 18082. + This requires that you use an extra three flags as part of your launch script, --rpc-bind-ip, --rpc-bind-port, and --user-agent. + Typically, you want to bind to your localhost IP, 127.0.0.1, and to port 18082. Your user agent should be a random string of characters and numbers - this acts to authenticate RPC requests to monero-wallet-cli. For Example:
- ./monero-wallet-cli --wallet-file MoneroWallet.bin --password xxxx --rpc-bind-ip 127.0.0.1 --rpc-bind-port 18082 + ./monero-wallet-cli --wallet-file <wallet name> --password <wallet password> --rpc-bind-ip 127.0.0.1 --rpc-bind-port 18082 --user-agent <some random string>
For monero-wallet-cli to connect to your extension, you will need to tell the extension which port to listen on. If you used port 18082, you are ready to go. If not, open the extension's Settings page and set the correct port.
- Check your extension to see if it is connected online. - Click the extension icon in the upper right of your browser to open the extension popup. + After starting monero-wallet-cli in rpc mode, check your chrome extension to see if it can connect. + Click the extension icon in the upper right of your browser to open the extension popup and log in with your User Agent. It may take a few seconds for your extension to fully connect to monero-wallet-cli.
- screen ./monero-wallet-cli --wallet-file MoneroWallet.bin --password xxxx --rpc-bind-ip 127.0.0.1 --rpc-bind-port 18082 + screen ./monero-wallet-cli --wallet-file MoneroWallet.bin --password xxxx --rpc-bind-ip 127.0.0.1 --rpc-bind-port 18082 --user-agent randomstring
If you have never used screen, a quick online search such as "screen command osx" should return plenty of information on how to use it. diff --git a/build/chrome/lib/js/popup.js b/build/chrome/lib/js/popup.js index 09c9777..55cba7b 100644 --- a/build/chrome/lib/js/popup.js +++ b/build/chrome/lib/js/popup.js @@ -23,6 +23,10 @@ document.addEventListener('DOMContentLoaded', function () { } }); + document.getElementById("login-whats-this").addEventListener("click", function () { + chrome.tabs.create({url: '/data/html/start.html'}); + }); + // Login with valid User Agent document.getElementById('user-agent-form').addEventListener('submit', function (e) { e.preventDefault();