Skip to content
Snippets Groups Projects
Unverified Commit a23790a1 authored by syuilo's avatar syuilo Committed by GitHub
Browse files

Merge pull request #1286 from akihikodaki/master

Allow to use domain whose prefix is not misskey
parents 687cd56c a633f184
No related merge requests found
...@@ -124,6 +124,7 @@ gulp.task('build:client:script', () => ...@@ -124,6 +124,7 @@ gulp.task('build:client:script', () =>
.pipe(replace('VERSION', JSON.stringify(version))) .pipe(replace('VERSION', JSON.stringify(version)))
.pipe(replace('API', JSON.stringify(config.api_url))) .pipe(replace('API', JSON.stringify(config.api_url)))
.pipe(replace('ENV', JSON.stringify(env))) .pipe(replace('ENV', JSON.stringify(env)))
.pipe(replace('HOST', JSON.stringify(config.host)))
.pipe(isProduction ? uglify({ .pipe(isProduction ? uglify({
toplevel: true toplevel: true
} as any) : gutil.noop()) } as any) : gutil.noop())
......
...@@ -27,9 +27,7 @@ ...@@ -27,9 +27,7 @@
// misskey.alice => misskey // misskey.alice => misskey
// misskey.strawberry.pasta => misskey // misskey.strawberry.pasta => misskey
// dev.misskey.arisu.tachibana => dev // dev.misskey.arisu.tachibana => dev
let app = url.host == 'localhost' let app = url.host === HOST ? 'misskey' : url.host.substr(0, -HOST.length);
? 'misskey'
: url.host.split('.')[0];
// Detect the user language // Detect the user language
// Note: The default language is English // Note: The default language is English
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment