10babb4a0c
Replace console with logger in sw register
2021-05-04 13:29:41 -05:00
a48ac5080b
Share common util code with VS Code
...
This lets us re-use the normalized base path so when we expire/clear the
cookie we use the same base path.
2021-05-04 13:29:40 -05:00
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
a44a51462c
refactor: use same syntax as logger spy
2021-02-26 11:51:52 -07:00
7ef630f7a4
refactor(register): use logError instead of logger
2021-02-26 11:51:52 -07:00
21f577d471
refactor: add handleRegisterServiceWorker fn
2021-02-26 11:51:52 -07:00
44b9874fbe
feat: test failure to register service worker
2021-02-26 11:51:52 -07:00
a9f88affa9
refactor: use logger in serviceworker
2021-02-26 11:51:51 -07:00
72b05cacac
refactor: create registerServiceWorker fn
2021-02-26 11:51:51 -07:00
938b460685
Add trailing slash to service worker scope
...
This will ensure it always matches or is underneath the allowed service
worker scope.
Fixes #2076 .
2020-09-09 12:05:04 -05:00
361e7103ea
Enable loading external plugins
2020-07-31 17:42:48 -05:00
2819fd51e2
Remove unused endpoints
...
- dashboard
- app api
2020-07-27 12:00:42 -05:00
a0a77e379e
Add doc/guide.md
2020-05-14 05:24:23 -04:00
069c5230cd
Move VS Code to the root
2020-03-02 12:55:34 -06:00
963ebaca5b
Register a service worker
...
To make installing as a PWA possible. Fixes #1181 .
2020-02-27 16:37:00 -06:00