aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/static/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/app.js')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/app.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/app.js b/packages/meshbay-hub/src/meshbay_hub/static/app.js
index 579d1dd..b45903a 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/app.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/app.js
@@ -504,20 +504,12 @@ function Sidebar({ groups, presence, indexProgressPct, route, menuOpen, role, sh
})
}
</div>
- <a class="sidebar-legal" href="${legalUrl()}" target="_blank" rel="noopener">
+ <a class="sidebar-legal" href="${platform.legalUrl()}" target="_blank" rel="noopener">
${t('sidebar.legal')}</a>
</aside>
`;
}
-// The legal pages of the hub in use: the page's own origin in a browser, the
-// configured hub in the application. A new tab either way: the application
-// refuses to navigate away from its interface and hands a new window to the
-// system browser instead, and in a browser it keeps the session on screen.
-function legalUrl() {
- return `${platform.hubBase().replace(/\/$/, '')}/legal/`;
-}
-
// ── Home Page ────────────────────────────────────────────────────────────────
function NotificationFeed({ notifications, onMarkRead, onPurge }) {