Ensure origin is provided before checking if origin is valid

pull/3094/head
ioedeveloper 4 years ago
parent 1907961297
commit 4f06d5e317
  1. 2
      bin/remixd.ts

@ -67,10 +67,10 @@ import * as path from 'path'
process.on('exit', kill)
async function isValidOrigin (origin: string): Promise<any> {
if (!origin) return false
const domain = getDomain(origin)
const gistUrl = 'https://gist.githubusercontent.com/EthereumRemix/091ccc57986452bbb33f57abfb13d173/raw/3367e019335746b73288e3710af2922d4c8ef5a3/origins.json'
if (!domain) return
try {
const { data } = await Axios.get(gistUrl)

Loading…
Cancel
Save