zulip/static
Anders Kaseorg 6de39ae92d js: Clean up typeof … === "undefined" checks.
The only reason to use typeof foo === "undefined" is when foo is a
global identifier that might not have been declared at all, so it
might raise a ReferenceError if evaluated.  For a variable declared
with const or let or import, a function argument, or a complex
expression, simply foo === undefined is equivalent.

Some of these conditions have become impossible and can be removed
entirely, and some can be replaced more idiomatically with default
parameters (note that JavaScript does not share the Python misfeature
of evaluating the default parameter at function declaration time).

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-03-24 13:15:01 -07:00
..
assets eslint: Forbid CommonJS variables in ES6 modules. 2021-03-23 01:42:43 -07:00
audio notificaiton_sounds: Add some atonal sounds created by @stwime. 2021-02-05 12:28:20 -08:00
generated
html logo: Update Zulip logo. 2020-07-16 01:37:08 -07:00
images logos: Optimize jotform.svg with svgo 2. 2021-03-04 12:24:25 -08:00
js js: Clean up typeof … === "undefined" checks. 2021-03-24 13:15:01 -07:00
shared typeahead: Always rank exact string match first. 2021-02-25 17:55:54 -08:00
styles notifications: Remove in_browser_notify and bootstrap-notify. 2021-03-22 23:40:38 -07:00
templates popovers: Change "Delete all messages in topic" to "Delete topic". 2021-03-23 15:46:00 -07:00
third notifications: Remove in_browser_notify and bootstrap-notify. 2021-03-22 23:40:38 -07:00
.gitignore dependencies: Replace moment.js with date-fns. 2021-02-05 11:04:32 -08:00