We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef24254 commit 09455beCopy full SHA for 09455be
1 file changed
src/stores/sandbox.ts
@@ -61,6 +61,11 @@ const mockConsole = () => {
61
};
62
63
console.error = function error(...args: unknown[]) {
64
+ if (typeof args[0] === "string" && args[0].startsWith("\u8bf7\u63a5\u5165 zhihu-hybrid")) {
65
+ // Bypass error message in Zhihu Hybrid environment
66
+ originalConsole.error(...args);
67
+ return;
68
+ }
69
// TODO: Support error stack
70
appendOutput("error", indent(showArgs(args)));
71
0 commit comments