Skip to content

Commit ad6b2ee

Browse files
committed
chore: use URLParse
1 parent 530a2c0 commit ad6b2ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/Url.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export default {
268268
* @returns {string}
269269
*/
270270
hidePassword(url) {
271-
const { protocol, username, hostname, pathname } = new URL(url);
271+
const { protocol, username, hostname, pathname } = URLParse(url);
272272
if (protocol === "file:") {
273273
return url;
274274
} else {

0 commit comments

Comments
 (0)