Skip to content

Commit

Permalink
fix broken link + minor fix on detect-wallet.md (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
ammanpashasc authored Apr 4, 2024
1 parent 66b4c7c commit 60ce765
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ A private key, a secret alphanumeric code, is used to digitally sign transaction

### Generate a Keypair

In most cases we don't recommend generating private keys online. However, if you are using this for our test network it is safe to use there. Otherwise, seek out some of the additional ways to generate a key pair safely. Such as using [cleos](../../blockchain/general/tools/cleos.md).
In most cases we don't recommend generating private keys online. However, if you are using this for our test network it is safe to use there. Otherwise, seek out some of the additional ways to generate a key pair safely. Such as using [cleos](../tools/cleos.md).

<KeyGenerator />
<br />
<br />

### Alternative Ways to Generate Keypairs

* [Ultra.io VSCode Extension](https://marketplace.visualstudio.com/items?itemName=ultraio.ultra-cpp)
* [EOS Authority](https://eosauthority.com/generate_eos_private_key)
* [EOSCafe Offline Generator](https://github.com/eoscafe/eos-key)
* [NadeJDE Key Generator](https://nadejde.github.io/eos-token-sale/)
- [Ultra.io VSCode Extension](https://marketplace.visualstudio.com/items?itemName=ultraio.ultra-cpp)
- [EOS Authority](https://eosauthority.com/generate_eos_private_key)
- [EOSCafe Offline Generator](https://github.com/eoscafe/eos-key)
- [NadeJDE Key Generator](https://nadejde.github.io/eos-token-sale/)
6 changes: 3 additions & 3 deletions docs/products/ultra-wallet/detect-wallet.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ outline: [0, 4]

# Detecting the Ultra Wallet

To detect if a user has already installed the Ultra Wallet browser extension the web application should run over **HTTPS** and check for the existence of an `**ultra**` object in the `window` variable.
To detect if a user has already installed the Ultra Wallet browser extension the web application should run over **HTTPS** and check for the existence of an `ultra` object in the `window` variable.

```JavaScript
if ('ultra' in window) {
Expand All @@ -16,7 +16,7 @@ if ('ultra' in window) {
```

This code can be called when you want (for example, when clicking on a button or a link).
If you want this check to be carried out automatically when the web page loads, you will need to integrate it into the '**load**' event in the `window` variable:
If you want this check to be carried out automatically when the web page loads, you will need to integrate it into the `load` event in the `window` variable:

```JavaScript
if(document.readyState !== 'complete') {
Expand All @@ -30,6 +30,6 @@ function afterWindowLoaded(){
console.log('Page load: Ultra Wallet is installed!');
} else {
console.log('Page load: No Ultra Wallet extension detected!');
}
}
}
```

0 comments on commit 60ce765

Please sign in to comment.