MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / loadData

Function loadData

src/options/index.js:63–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61}
62
63export function loadData() {
64 const id = +store.route.paths[1];
65 return requestData(id)
66 .catch(id && (() => requestData()));
67 /* Catching in order to retry without an id if the id is invalid.
68 * Errors will be shown in showUnhandledError. */
69}
70
71async function requestData(id) {
72 const [data] = await Promise.all([

Callers 4

index.jsFile · 0.70
ScriptsUpdatedFunction · 0.70
pushTranslationsFunction · 0.50
pullTranslationsFunction · 0.50

Calls 1

requestDataFunction · 0.85

Tested by

no test coverage detected