MCPcopy
hub / github.com/darkreader/darkreader / activate

Function activate

src/ui/options/activation/activation-tab.tsx:52–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 }
51
52 const activate = () => {
53 if (store.checking) {
54 return;
55 }
56
57 const email = store.emailTextElement?.value.trim() ?? '';
58 const key = store.keyTextElement?.value.trim() ?? '';
59
60 store.errorMessage = '';
61 store.checking = true;
62 context.refresh();
63 props.actions.startActivation(email, key);
64 store.errorMessage = 'Please check your email and key';
65 store.checking = false;
66 };
67
68 return <div
69 class={{

Callers 1

ActivationTabFunction · 0.70

Calls 1

startActivationMethod · 0.65

Tested by

no test coverage detected