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:
1 parent
22fc47f69f
commit
2ad3592eb3
3 files changed
+12
-4
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user