MCPcopy Index your code
hub / github.com/Acode-Foundation/Acode / async

Function async

src/pages/plugin/plugin.view.js:357–365  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

355 data-type="info"
356 className="btn btn-install"
357 onclick={async () => {
358 try {
359 await auth.login();
360 const newButton = await Buttons(props);
361 buttonRef.el.replaceWith(newButton);
362 } catch (error) {
363 helpers.error(error);
364 }
365 }}
366 >
367 <i className="icon user-round"></i>
368 {strings.login}

Callers 1

editorFile.jsFile · 0.85

Calls 2

loginMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected