mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-24 08:33:36 +00:00
12 lines
332 B
TypeScript
12 lines
332 B
TypeScript
// This util function returns the page params if they're present else returns null
|
|
export function isPageParams(): null | object {
|
|
let webpageParams = null;
|
|
try {
|
|
// eslint-disable-next-line no-undef, @typescript-eslint/camelcase
|
|
webpageParams = page_params;
|
|
} catch (_) {
|
|
webpageParams = null;
|
|
}
|
|
return webpageParams;
|
|
}
|