MCPcopy
hub / github.com/TransformerOptimus/SuperAGI / refreshUrl

Function refreshUrl

gui/utils/utils.js:206–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

204};
205
206export const refreshUrl = () => {
207 if (typeof window === 'undefined') {
208 return;
209 }
210
211 const {origin, pathname} = window.location;
212 const urlWithoutToken = origin + pathname;
213 window.history.replaceState({}, document.title, urlWithoutToken);
214};
215
216export const loadingTextEffect = (loadingText, setLoadingText, timer) => {
217 const text = loadingText;

Callers 2

_app.jsFile · 0.90
logoutUserFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected