Skip to content

Commit

Permalink
fix(core): 删除多余输出
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed May 21, 2022
1 parent d056809 commit 8cee017
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions packages/core/src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ export function createLog(level: 'info' | 'error' | 'warn' | 'debug', ...msg: an
export function logger(level: 'info' | 'error' | 'warn' | 'debug', ...msg: any[]) {
if (level === 'error') {
console.error(...createLog(level, msg));
} else {
console.log(...createLog(level, msg));
}

if (document) {
const extra =
level === 'info'
Expand Down
2 changes: 0 additions & 2 deletions packages/core/src/script/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export const CommonScript = defineScript({
url: supports,
start() {
try {
console.log('禁止弹窗脚本启动');
// @ts-ignore
if (typeof unsafeWindow !== 'undefined') {
// @ts-ignore
Expand All @@ -32,7 +31,6 @@ export const CommonScript = defineScript({
url: supports,
start() {
function enableCopy() {
console.log('开启页面复制粘贴功能');
try {
const d = document;
const b = document.body;
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/script/cx/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ export const CXScript = defineScript({
}

let chapters = CXAnalyses.getChapterInfos();
console.log('chapters', chapters);

// 如果不是复习模式,则寻找需要运行的任务
if (!restudy) {
Expand Down

0 comments on commit 8cee017

Please sign in to comment.