diff --git a/src/app.jsx b/src/app.jsx index 87d6a871..f69c1964 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -377,7 +377,12 @@ function initMasto(params) { } = info; if (uri || domain) { const instances = store.local.getJSON('instances') || {}; - instances[(domain || uri).toLowerCase()] = info; + instances[ + (domain || uri) + .replace(/^https?:\/\//, '') + .replace(/\/+$/, '') + .toLowerCase() + ] = info; store.local.setJSON('instances', instances); } if (streamingApi || streaming) {