1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-28 13:15:25 +00:00
code-server-2/src/browser
Joe Previte 83746c8a1f
refactor: remove null check in register.ts options.base
Inside registerServiceWorker, we were originally using the nullash coalescing
operator to check if options.base was null or undefined. However, I realized
this check is not necessary.

If you look at getOptions' return value, we return an object with a key "base"
which is of type "string". We get that value by calling resolveBase which always
returns a string.

As a result, we didn't need to check if options.base was null or undefined
because it never can be.
2021-04-23 17:09:03 -07:00
..
media favicon: Add dark mode support 2021-01-11 12:54:25 -05:00
pages Merge pull request #2823 from cdr/vapurrmaid/rm-updatecss 2021-03-05 14:04:33 -07:00
favicon.afdesign browser: Add favicon.afdesign 2021-01-08 23:03:34 -05:00
register.ts refactor: remove null check in register.ts options.base 2021-04-23 17:09:03 -07:00
robots.txt Add robots.txt (#2080) 2020-09-14 17:34:48 -05:00
serviceWorker.ts feat: add logs to serviceWorker 2021-02-26 11:58:29 -07:00