Skip to content

Commit 5ea4613

Browse files
author
sheepzh
committed
Clean code
1 parent 1628209 commit 5ea4613

File tree

6 files changed

+3
-200
lines changed

6 files changed

+3
-200
lines changed

src/background/version-manager/1-6-0/alias-icon-cleaner.ts

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/background/version-manager/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import { getVersion, onInstalled } from "@api/chrome/runtime"
99
import HostMergeInitializer from "./0-1-2/host-merge-initializer"
1010
import LocalFileInitializer from "./0-7-0/local-file-initializer"
11-
import RunningTimeClear from "./1-6-0/alias-icon-cleaner"
1211

1312
/**
1413
* Version manager
@@ -22,7 +21,6 @@ class VersionManager {
2221
this.processorChain.push(
2322
new HostMergeInitializer(),
2423
new LocalFileInitializer(),
25-
new RunningTimeClear(),
2624
)
2725
this.processorChain = this.processorChain.sort((a, b) => a.since() >= b.since() ? 1 : 0)
2826
}

src/database/host-alias-database.ts

Lines changed: 0 additions & 96 deletions
This file was deleted.

src/database/icon-url-database.ts

Lines changed: 0 additions & 44 deletions
This file was deleted.

src/util/constant/url.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -121,18 +121,6 @@ export function getGuidePageUrl(): string {
121121
return getHomepageWithLocale() + 'guide/start'
122122
}
123123

124-
/**
125-
* @since 0.2.2
126-
* @deprecated mv3
127-
* @returns icon url in the browser
128-
*/
129-
export function iconUrlOfBrowser(protocol: string, host: string): string {
130-
if (IS_CHROME || IS_EDGE) {
131-
return `${IS_CHROME ? 'chrome' : 'edge'}://favicon/${protocol ? protocol + '://' : ''}${host}`
132-
}
133-
return undefined
134-
}
135-
136124
/**
137125
* @since 0.9.3
138126
*/

tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"baseUrl": "./",
44
"module": "commonjs",
55
"target": "es5",
6+
"lib": [
7+
"ES2023"
8+
],
69
"jsx": "preserve",
710
"jsxFactory": "h",
811
"jsxImportSource": "vue",

0 commit comments

Comments
 (0)