MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / setAuthority

Function setAuthority

src/utils/authority.js:34–39  ·  view source on GitHub ↗
(authority)

Source from the content-addressed store, hash-verified

32 return authority;
33}
34export function setAuthority (authority) {
35 const proAuthority = typeof authority === 'string' ? [authority] : authority;
36 localStorage.setItem('antd-pro-authority', JSON.stringify(proAuthority)); // auto reload
37
38 reloadAuthorized();
39}

Callers

nothing calls this directly

Calls 1

reloadAuthorizedFunction · 0.90

Tested by

no test coverage detected