From 568d5e4cdf432ec547fa008e3af326fb409889c5 Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Sun, 30 Jul 2023 08:09:05 -0700 Subject: [PATCH] fix(core): lockdown twice --- apps/core/src/bootstrap/register-plugins.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/apps/core/src/bootstrap/register-plugins.ts b/apps/core/src/bootstrap/register-plugins.ts index 3498fd15ac..3b13095e1d 100644 --- a/apps/core/src/bootstrap/register-plugins.ts +++ b/apps/core/src/bootstrap/register-plugins.ts @@ -1,6 +1,3 @@ -/// -import 'ses'; - import { DebugLogger } from '@affine/debug'; import { registeredPluginAtom, @@ -9,17 +6,6 @@ import { import { evaluatePluginEntry, setupPluginCode } from './plugins/setup'; -if (!process.env.COVERAGE) { - lockdown({ - evalTaming: 'unsafeEval', - overrideTaming: 'severe', - consoleTaming: 'unsafe', - errorTaming: 'unsafe', - errorTrapping: 'platform', - unhandledRejectionTrapping: 'report', - }); -} - const builtinPluginUrl = new Set([ '/plugins/bookmark', '/plugins/copilot',