diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-08-27 04:56:57 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-08-27 04:56:57 +0900 |
| commit | d423f8ae5755eb07c4033b5ea93d0ec2e26eeb56 (patch) | |
| tree | de38629c420a5c21c371dd008598925b9a35b429 /src/config/load.ts | |
| parent | Merge branch 'develop' (diff) | |
| parent | 8.15.0 (diff) | |
| download | misskey-d423f8ae5755eb07c4033b5ea93d0ec2e26eeb56.tar.gz misskey-d423f8ae5755eb07c4033b5ea93d0ec2e26eeb56.tar.bz2 misskey-d423f8ae5755eb07c4033b5ea93d0ec2e26eeb56.zip | |
Merge branch 'develop'
Diffstat (limited to 'src/config/load.ts')
| -rw-r--r-- | src/config/load.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/load.ts b/src/config/load.ts index 1c59f82b3e..8929cf8d3e 100644 --- a/src/config/load.ts +++ b/src/config/load.ts @@ -53,5 +53,5 @@ export default function load() { } function normalizeUrl(url: string) { - return url[url.length - 1] === '/' ? url.substr(0, url.length - 1) : url; + return url.endsWith('/') ? url.substr(0, url.length - 1) : url; } |