fix(core): lockdown twice
This commit is contained in:
@@ -1,6 +1,3 @@
|
|||||||
/// <reference types="@types/webpack-env" />
|
|
||||||
import 'ses';
|
|
||||||
|
|
||||||
import { DebugLogger } from '@affine/debug';
|
import { DebugLogger } from '@affine/debug';
|
||||||
import {
|
import {
|
||||||
registeredPluginAtom,
|
registeredPluginAtom,
|
||||||
@@ -9,17 +6,6 @@ import {
|
|||||||
|
|
||||||
import { evaluatePluginEntry, setupPluginCode } from './plugins/setup';
|
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([
|
const builtinPluginUrl = new Set([
|
||||||
'/plugins/bookmark',
|
'/plugins/bookmark',
|
||||||
'/plugins/copilot',
|
'/plugins/copilot',
|
||||||
|
|||||||
Reference in New Issue
Block a user