Skip to content

Commit

Permalink
Check MFM url
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Feb 9, 2023
1 parent 8d1cbd8 commit 8c5fff7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/client/src/components/global/MkUrl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const props = defineProps<{
const self = props.url.startsWith(local);
const url = new URL(props.url);
if (!['http:', 'https:'].includes(url.protocol)) throw new Error('invalid url');
const el = ref();
useTooltip(el, (showing) => {
Expand Down

0 comments on commit 8c5fff7

Please sign in to comment.