Don't require http:// on hostname for cli
This commit is contained in:
parent
36f752085c
commit
74d04398ba
@ -54,6 +54,8 @@ export default cmd({
|
||||
|
||||
console.log('Generating repo...')
|
||||
|
||||
const serverCleaned = server.replace('http://', '').replace('https://', '')
|
||||
|
||||
await config.writeCfg(REPO_PATH, username, server)
|
||||
const client = await loadDelegate(REPO_PATH)
|
||||
|
||||
|
@ -6,7 +6,7 @@ export const loadDelegate = async (
|
||||
): Promise<MicroblogDelegator> => {
|
||||
const { account, keypair, ucanStore } = await config.loadCfg(repoPath)
|
||||
return new MicroblogDelegator(
|
||||
account.server,
|
||||
'http://' + account.server,
|
||||
keypair.did(),
|
||||
keypair,
|
||||
ucanStore,
|
||||
|
Loading…
x
Reference in New Issue
Block a user