mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
feat(home): clarify 5chan is serverless app, use current hostname for share links
- Homepage infobox: merged copy into single line explaining app nature and download link - Share links (Copy direct link): use window.location.origin instead of hardcoded 5chan.app - Settings version link: use current origin - FAQ: add 'Is 5chan just this website?' entry under Basics - Remove pleb.bz from CHAN_5_HOSTNAMES
This commit is contained in:
@@ -41,7 +41,7 @@ const fetchLatestVersionInfo = async (t: (key: string, opts?: Record<string, unk
|
||||
if (!updateAvailable) {
|
||||
alert(
|
||||
commitRef
|
||||
? `${t('latest_development_version', { commit: commitRef.slice(0, 7), link: 'https://5chan.app/#/', interpolation: { escapeValue: false } })}`
|
||||
? `${t('latest_development_version', { commit: commitRef.slice(0, 7), link: `${window.location.origin}/#/`, interpolation: { escapeValue: false } })}`
|
||||
: `${t('latest_stable_version', { version: packageJson.version })}`,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user