diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2018-09-02 20:19:59 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2018-09-02 20:19:59 +0900 |
| commit | 99fbd6026591f555f270b826c71c42e9de601267 (patch) | |
| tree | 91843ce5270c3435d5232453c976868a0e5db48f /src/client | |
| parent | 8.22.0 (diff) | |
| download | misskey-99fbd6026591f555f270b826c71c42e9de601267.tar.gz misskey-99fbd6026591f555f270b826c71c42e9de601267.tar.bz2 misskey-99fbd6026591f555f270b826c71c42e9de601267.zip | |
Improve url visual (#2591)
* Use string interpolation
* improve url visual
* fix lint
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/common/views/components/url.vue | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/client/app/common/views/components/url.vue b/src/client/app/common/views/components/url.vue index e6ffe4466d..04a1f30135 100644 --- a/src/client/app/common/views/components/url.vue +++ b/src/client/app/common/views/components/url.vue @@ -12,6 +12,7 @@ <script lang="ts"> import Vue from 'vue'; +import { toUnicode as decodePunycode } from 'punycode'; export default Vue.extend({ props: ['url', 'target'], data() { @@ -27,11 +28,11 @@ export default Vue.extend({ created() { const url = new URL(this.url); this.schema = url.protocol; - this.hostname = url.hostname; + this.hostname = decodePunycode(url.hostname); this.port = url.port; - this.pathname = url.pathname; - this.query = url.search; - this.hash = url.hash; + this.pathname = decodeURIComponent(url.pathname); + this.query = decodeURIComponent(url.search); + this.hash = decodeURIComponent(url.hash); } }); </script> |