first commit
This commit is contained in:
5
calcom/packages/lib/navigateInTopWindow.ts
Normal file
5
calcom/packages/lib/navigateInTopWindow.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export const navigateInTopWindow = (url: string) => {
|
||||
// In some weird unknown case, window.top.location could be null as per typescript. In such case, we still do the redirect but in same window
|
||||
const location = window.top ? window.top.location : window.location;
|
||||
location.href = url;
|
||||
};
|
||||
Reference in New Issue
Block a user