From c2e0d1573fe19e471c7d450bb5200b7840c768f4 Mon Sep 17 00:00:00 2001 From: the1812 Date: Fri, 14 Jun 2019 23:34:20 +0800 Subject: [PATCH] Fix bug --- docs/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/index.js b/docs/index.js index 2ea81011b..2bcc933e1 100644 --- a/docs/index.js +++ b/docs/index.js @@ -1,3 +1,5 @@ -import { foo } from './foo'; +import { foo } from './foo.js'; -document.body.innerHTML = foo() \ No newline at end of file +const p = document.createElement('p') +p.innerHTML = foo() +document.body.appendChild(p) \ No newline at end of file