summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorfutchitwo <74236683+futchitwo@users.noreply.github.com>2022-11-04 22:02:35 +0900
committerGitHub <noreply@github.com>2022-11-04 22:02:35 +0900
commit24d18a7b19d6ee803578fc0e044fd377fcf587ef (patch)
treeaf43a5efa40a9987ecacb01bf372ecc72ae3712e /packages
parentupdate deps (diff)
downloadsharkey-24d18a7b19d6ee803578fc0e044fd377fcf587ef.tar.gz
sharkey-24d18a7b19d6ee803578fc0e044fd377fcf587ef.tar.bz2
sharkey-24d18a7b19d6ee803578fc0e044fd377fcf587ef.zip
fix(client): clarify to use props.url (#9143)
Diffstat (limited to 'packages')
-rw-r--r--packages/client/src/components/global/MkUrl.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/client/src/components/global/MkUrl.vue b/packages/client/src/components/global/MkUrl.vue
index 37c0212eaa..740ce29080 100644
--- a/packages/client/src/components/global/MkUrl.vue
+++ b/packages/client/src/components/global/MkUrl.vue
@@ -1,6 +1,6 @@
<template>
<component
- :is="self ? 'MkA' : 'a'" ref="el" class="ieqqeuvs _link" :[attr]="self ? url.substr(local.length) : url" :rel="rel" :target="target"
+ :is="self ? 'MkA' : 'a'" ref="el" class="ieqqeuvs _link" :[attr]="self ? props.url.substring(local.length) : props.url" :rel="rel" :target="target"
@contextmenu.stop="() => {}"
>
<template v-if="!self">
@@ -11,7 +11,7 @@
<template v-if="pathname === '/' && self">
<span class="self">{{ hostname }}</span>
</template>
- <span v-if="pathname != ''" class="pathname">{{ self ? pathname.substr(1) : pathname }}</span>
+ <span v-if="pathname != ''" class="pathname">{{ self ? pathname.substring(1) : pathname }}</span>
<span class="query">{{ query }}</span>
<span class="hash">{{ hash }}</span>
<i v-if="target === '_blank'" class="fas fa-external-link-square-alt icon"></i>