onedrive/utils/tools.ts

7 lines
125 B
TypeScript
Raw Normal View History

export const getBaseUrl = () => {
if (typeof window !== 'undefined') {
return window.location.origin
}
return ''
}