mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-12-01 01:05:30 +08:00
feat: 拓展中心
This commit is contained in:
1 parent
9ffa1efc26
commit
4eaddc2d75
74 files changed
+11738
-379
No files matched your search
+13
-1
@@ -1454,7 +1454,19 @@ app.whenReady().then(async () => { if (isLegacyMigrationHelper) {
|
||||
// Create the renderer before native WCDB bootstrap so startup progress is visible immediately.
|
||||
await reportTemplateService.recover()
|
||||
registerReportTemplateIpc()
|
||||
installExtensionProtocolHandler(getExtensionPaths())
|
||||
installExtensionProtocolHandler({
|
||||
paths: getExtensionPaths(),
|
||||
// 开发模式下代码在用户自己的目录里:协议必须走同一个解析器,
|
||||
// 否则页面会读到旧的安装副本。管理器尚未就绪时回退到安装目录。
|
||||
resolveRoot: (extensionId) => {
|
||||
if (!hasExtensionManager()) return getExtensionPaths().installDir(extensionId)
|
||||
try {
|
||||
return getExtensionManager().resolveExtensionRoot(extensionId)
|
||||
} catch {
|
||||
return null
|
||||
}
|
||||
}
|
||||
})
|
||||
registerExtensionIpc({
|
||||
getManager: getExtensionManager,
|
||||
paths: getExtensionPaths(),
|
||||
|
||||
Reference in new issue
Block a user