mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-10-31 22:40:01 +00:00
clean up debug logging calls
This commit is contained in:
parent
60a8dcf98c
commit
b6f8d2b207
4 changed files with 0 additions and 18 deletions
|
@ -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
|
||||
|
|
|
@ -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"})
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
};
|
||||
},
|
||||
|
|
|
@ -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}>
|
||||
|
|
Loading…
Reference in a new issue