MCPcopy Create free account
hub / github.com/zxlie/FeHelper / _getChromeLastErrorMessage

Function _getChromeLastErrorMessage

apps/background/background.js:66–74  ·  view source on GitHub ↗
(fallback)

Source from the content-addressed store, hash-verified

64 };
65
66 let _getChromeLastErrorMessage = function (fallback) {
67 try {
68 let lastError = chrome.runtime && chrome.runtime.lastError;
69 if (lastError && lastError.message) {
70 return lastError.message;
71 }
72 } catch (_) {}
73 return fallback || '未知错误';
74 };
75
76 let _queryTabs = function (queryInfo) {
77 return new Promise((resolve, reject) => {

Callers 1

background.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected