mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-19 08:28:41 +00:00
try catch error
This commit is contained in:
parent
e7283964b4
commit
2e1112f526
@ -95,6 +95,7 @@ export const TipUpdate = "tip-update";
|
||||
],
|
||||
},
|
||||
];
|
||||
try {
|
||||
await githubMirrorMgr.init();
|
||||
const data = await githubMirrorMgr.getData("version.json");
|
||||
if (data) {
|
||||
@ -114,6 +115,9 @@ export const TipUpdate = "tip-update";
|
||||
});
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
chrome.notifications.onClicked.addListener((id) => {
|
||||
const ret = config.find((el) => el.id === id);
|
||||
if (ret) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user