mirror of
1
Fork 0

clean up debug logging calls

This commit is contained in:
f0x 2022-09-20 17:09:47 +02:00
parent 60a8dcf98c
commit b6f8d2b207
4 changed files with 0 additions and 18 deletions

View File

@ -35,7 +35,6 @@ module.exports = function Login({error}) {
// check if current domain runs an instance
let currentDomain = window.location.origin;
Promise.try(() => {
console.log("trying", currentDomain);
return dispatch(api.instance.fetchWithoutStore(currentDomain));
}).then(() => {
if (instanceFieldRef.current.length == 0) { // user hasn't started typing yet

View File

@ -120,7 +120,6 @@ module.exports = function ({ apiCall, getChanges }) {
if (domains.length == 0) {
return;
}
console.log(domains);
const update = {
domains: new Blob([JSON.stringify(domains)], {type: "application/json"})

View File

@ -82,7 +82,6 @@ module.exports = function oauthAPI({ apiCall, getCurrentUrl }) {
code: code
}));
}).then((json) => {
console.log(json);
window.history.replaceState({}, document.title, window.location.pathname);
return dispatch(oauth.login(json));
});
@ -110,8 +109,6 @@ module.exports = function oauthAPI({ apiCall, getCurrentUrl }) {
]);
}).catch(AuthenticationError, () => {
return dispatch(oauth.setAdmin(false));
}).catch((e) => {
console.log("caught", e, e instanceof AuthenticationError);
});
};
},

View File

@ -51,12 +51,9 @@ module.exports = function getViews(struct) {
delete entries.adminOnly;
}
console.log(name, entries);
let base = `/settings/${urlSafe(name)}`;
let links = [];
let routes = [];
let firstRoute;
@ -87,16 +84,6 @@ module.exports = function getViews(struct) {
</Route>
);
// let childrenPath = `${base}/:section`;
// panelRouterEl.push(...routes);
console.log(panelRouterEl);
// <Route key={childrenPath} path={childrenPath}>
// <Switch id="childrenPath-switch">
// {routes}
// </Switch>
// </Route>
// );
sidebarEl.push(
<React.Fragment key={name}>
<Link href={firstRoute}>