Files
zulip-desktop/app/renderer/js/utils/params-util.ts
Anders Kaseorg 55eb768064 xo: Upgrade xo to 0.28.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-03-23 16:53:14 -07:00

14 lines
354 B
TypeScript

/* eslint-disable unicorn/prevent-abbreviations */
// 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
webpageParams = page_params;
} catch (_) {
webpageParams = null;
}
return webpageParams;
}