Skip to content

Commit 8cb698b

Browse files
committed
bugfix possible url exception
1 parent 4f107c0 commit 8cb698b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/loader/pluginLoader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@
500500
};
501501

502502
export function getDomainForPlugin(uri) {
503-
return uri && uri.split('/')[2]
503+
return (uri && uri.split('/')[2] || '')
504504
// Skip www. for domain search.
505505
.replace(/^www\./i, "")
506506
// Skip tailing ? for `domain.com?query`

0 commit comments

Comments
 (0)