mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07:00
Merge pull request #1286 from akihikodaki/master
Allow to use domain whose prefix is not misskey
This commit is contained in:
commit
d3da1a95fb
2 changed files with 2 additions and 3 deletions
|
@ -124,6 +124,7 @@ gulp.task('build:client:script', () =>
|
|||
.pipe(replace('VERSION', JSON.stringify(version)))
|
||||
.pipe(replace('API', JSON.stringify(config.api_url)))
|
||||
.pipe(replace('ENV', JSON.stringify(env)))
|
||||
.pipe(replace('HOST', JSON.stringify(config.host)))
|
||||
.pipe(isProduction ? uglify({
|
||||
toplevel: true
|
||||
} as any) : gutil.noop())
|
||||
|
|
|
@ -27,9 +27,7 @@
|
|||
// misskey.alice => misskey
|
||||
// misskey.strawberry.pasta => misskey
|
||||
// dev.misskey.arisu.tachibana => dev
|
||||
let app = url.host == 'localhost'
|
||||
? 'misskey'
|
||||
: url.host.split('.')[0];
|
||||
let app = url.host === HOST ? 'misskey' : url.host.substr(0, -HOST.length);
|
||||
|
||||
// Detect the user language
|
||||
// Note: The default language is English
|
||||
|
|
Loading…
Reference in a new issue