Skip to content

开源白板工具(SaaS),一体化白板,包含思维导图、流程图、自由画等。All in one open-source whiteboard tool with mind, flowchart, freehand and etc.

fix(frontend): comment addDebugLog to prevent potential XSS security issue (#269)

Andy Lu (Lu, Yu-An)92536e63c1ad
diff --git a/apps/web/src/app/app.tsx b/apps/web/src/app/app.tsx
index d36b715..1047272 100644
--- a/apps/web/src/app/app.tsx
+++ b/apps/web/src/app/app.tsx
@@ -52,12 +52,14 @@ export function App() {
}}
afterInit={(board) => {
console.log('board initialized');
+ /*
console.log(
`add __drawnix__web__debug_log to window, so you can call add log anywhere, like: window.__drawnix__web__console('some thing')`
);
(window as any)['__drawnix__web__console'] = (value: string) => {
addDebugLog(board, value);
};
+ */
}}
></Drawnix>
);