mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
feat: ✨ Give more functionality to note menu
This commit is contained in:
parent
97566289cd
commit
49d356e2ab
12 changed files with 95 additions and 35 deletions
8
utils/urls.ts
Normal file
8
utils/urls.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
export const wrapUrl = (path: string) => {
|
||||
return new URL(
|
||||
path,
|
||||
identity.value
|
||||
? `https://${identity.value.instance.domain}`
|
||||
: window.location.origin,
|
||||
).toString();
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue