mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-19 16:38: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();
|
await githubMirrorMgr.init();
|
||||||
const data = await githubMirrorMgr.getData("version.json");
|
const data = await githubMirrorMgr.getData("version.json");
|
||||||
if (data) {
|
if (data) {
|
||||||
@ -114,6 +115,9 @@ export const TipUpdate = "tip-update";
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (e) {
|
||||||
|
console.error(e);
|
||||||
|
}
|
||||||
chrome.notifications.onClicked.addListener((id) => {
|
chrome.notifications.onClicked.addListener((id) => {
|
||||||
const ret = config.find((el) => el.id === id);
|
const ret = config.find((el) => el.id === id);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user