From e8e3e099391f3589673458bca728d1738445ea1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BC=8A=E6=92=92=E5=B0=94?= <1533540012@qq.com> Date: Wed, 11 Nov 2020 14:53:11 +0800 Subject: [PATCH] Update sandbox.ts --- src/sandbox.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sandbox.ts b/src/sandbox.ts index 7b33fc7..b8ec605 100644 --- a/src/sandbox.ts +++ b/src/sandbox.ts @@ -141,7 +141,7 @@ export function run(code: string, options: any = {}): any { export function observeDoucument(host: any): void { new MutationObserver((mutations) => { - mutations.forEach(async (m: any) => { + mutations.forEach((m: any) => { switch (m.type) { case 'childList': if (m.target !== host) {