We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32be021 commit 5e6f4ecCopy full SHA for 5e6f4ec
src/utils/parser.mjs
@@ -12,7 +12,7 @@ export const loadFromURL = async url => {
12
13
if (!parsedUrl || parsedUrl.protocol === 'file:') {
14
// Load from file system
15
- return readFile(parsedUrl, 'utf-8');
+ return readFile(parsedUrl || url, 'utf-8');
16
} else {
17
// Load from network
18
const response = await fetch(parsedUrl);
0 commit comments