Commit 681de1d1 authored by ioedeveloper's avatar ioedeveloper

Ensure origin is provided before checking if origin is valid

parent 1d277cfe
...@@ -67,10 +67,10 @@ import * as path from 'path' ...@@ -67,10 +67,10 @@ import * as path from 'path'
process.on('exit', kill) process.on('exit', kill)
async function isValidOrigin (origin: string): Promise<any> { async function isValidOrigin (origin: string): Promise<any> {
if (!origin) return false
const domain = getDomain(origin) const domain = getDomain(origin)
const gistUrl = 'https://gist.githubusercontent.com/EthereumRemix/091ccc57986452bbb33f57abfb13d173/raw/3367e019335746b73288e3710af2922d4c8ef5a3/origins.json' const gistUrl = 'https://gist.githubusercontent.com/EthereumRemix/091ccc57986452bbb33f57abfb13d173/raw/3367e019335746b73288e3710af2922d4c8ef5a3/origins.json'
if (!domain) return
try { try {
const { data } = await Axios.get(gistUrl) const { data } = await Axios.get(gistUrl)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment