From d5818214f3237d4f9445446b8a38b8e9d41cac4a Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Fri, 28 Sep 2018 20:54:14 +0900 Subject: [PATCH] Fix 'URL is not defined' in MFM (#2782) --- src/mfm/html-to-mfm.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mfm/html-to-mfm.ts b/src/mfm/html-to-mfm.ts index 6da1dbdad3..aa887c5560 100644 --- a/src/mfm/html-to-mfm.ts +++ b/src/mfm/html-to-mfm.ts @@ -1,4 +1,5 @@ const parse5 = require('parse5'); +import { URL } from 'url'; export default function(html: string): string { if (html == null) return null;