diff options
| author | secondl1ght <[email protected]> | 2022-09-29 23:19:14 -0600 |
|---|---|---|
| committer | secondl1ght <[email protected]> | 2022-09-29 23:19:14 -0600 |
| commit | 6bc16274bd37759c060d18e39f8caee373b09dd2 (patch) | |
| tree | 79d76144ebb5056402db3c032ab7ceb0fd13906d /src/lib | |
| parent | d9a450148a859de42a86c758b0be4a63e6d7fbac (diff) | |
| download | coinos-ui-6bc16274bd37759c060d18e39f8caee373b09dd2.tar.gz coinos-ui-6bc16274bd37759c060d18e39f8caee373b09dd2.zip | |
format
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/parse.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/parse.js b/src/lib/parse.js index 2abc2cba..e503a723 100644 --- a/src/lib/parse.js +++ b/src/lib/parse.js @@ -2,12 +2,12 @@ import validate from 'bitcoin-address-validation'; import bip21 from 'bip21'; import { get } from '$lib/utils'; -import { goto } from "$app/navigation"; +import { goto } from '$app/navigation'; let debounce; export default async (text) => { if (!text) return; - console.log("parsing") + console.log('parsing'); // lightning if (text.startsWith('ln')) { @@ -19,12 +19,12 @@ export default async (text) => { // bitcoin if (validate(text)) { console.log('bitcoin'); - goto(`/send/bitcoin/${text}`); + goto(`/send/bitcoin/${text}`); } // ln address if (text.includes('@') && text.includes('.')) { - console.log("ln address") + console.log('ln address'); let [name, domain] = text.split('@'); try { clearTimeout(debounce); @@ -35,5 +35,5 @@ export default async (text) => { } // user - console.log("username") + console.log('username'); }; |
