Skip to content

Commit

Permalink
feat: modify log
Browse files Browse the repository at this point in the history
  • Loading branch information
hans000 committed Aug 20, 2024
1 parent 3dd1cce commit cfc5618
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Easy Interceptor",
"version": "1.17.1",
"version": "1.17.2",
"description": "__MSG_description__",
"permissions": [
"storage",
Expand All @@ -20,7 +20,7 @@
"default_locale": "zh_CN",
"content_security_policy" : "script-src 'self' 'unsafe-eval'; script-src-elem 'self' data: blob: https://unpkg.com; worker-src 'self' data: blob:; object-src 'self'",
"browser_action": {
"default_title": "Easy Interceptor by hans000 - v1.17.1",
"default_title": "Easy Interceptor by hans000 - v1.17.2",
"default_popup": "index.html",
"default_icon": "images/128-gray.png"
},
Expand Down
2 changes: 1 addition & 1 deletion src/tools/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const config = {
}

export function log(message: any, type: 'info' | 'warn' | 'error' = 'info') {
console.log(`%c ${ExtensionName} %c log `, `color:white;background-color:${config[type]}`, 'color:green;background-color:black', message)
console.log(`%c ${ExtensionName} %c ${type} `, `color:white;background-color:${config[type]}`, 'color:green;background-color:black', message)
}

export function sendLog(msg: any) {
Expand Down

0 comments on commit cfc5618

Please sign in to comment.