chore: Introduce a new class WebAppURL that extends URL (#14982)

* chore: Introduce a new class WebAppURL that extends URL

* update

---------

Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
Anik Dhabal BabuandPeer Richelsen authored and GitHub committed 2024-07-18 07:27:34 +00:00
1 parent 22fc47f69f
commit 2ad3592eb3
3 files changed
+12 -4

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
import { WEBAPP_URL } from "@calcom/lib/constants";
/** This class extends the native URL and uses WEBAPP_URL as the base URL for creating object URLs */
export class WebAppURL extends URL {
constructor(path: string | URL) {
super(path, WEBAPP_URL);
}
}