element-web/src
Travis Ralston bcd5c838e8
Typescriptify & use service worker for MSC3916 authentication (#27326)
* Typescriptify & use service worker for MSC3916 authentication

* appease the linter

* appease jest

* appease linter

* Get the access token directly

* Add a bit of jitter

* Improve legibility, use factored-out functions for pickling

* Add docs

* Appease the linter

* Document risks of postMessage

* Split service worker post message handling out to function

* Move registration to async function

* Use more early returns

* Thanks(?), WebStorm

* Handle case of no access token for /versions

* Appease linter

* Apply suggestions from code review

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Remove spurious try/catch

* Factor out fetch config stuff

* Apply suggestions from code review

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Finish applying code review suggestions

---------

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2024-05-14 13:17:38 -06:00
..
@types Merge branch 'develop' into johannes/webpack-5 2023-11-16 19:20:22 +01:00
async-components/structures Remove hardcoded defaults and update manifest.json (#26359) 2023-10-13 12:24:54 +01:00
components/views/auth rename the GH org in links within documentation 2023-12-20 12:21:26 +00:00
customisations Update README.md link 2020-10-16 11:32:57 +01:00
i18n/strings [create-pull-request] automated change 2024-03-22 06:07:23 +00:00
serviceworker Typescriptify & use service worker for MSC3916 authentication (#27326) 2024-05-14 13:17:38 -06:00
vector Typescriptify & use service worker for MSC3916 authentication (#27326) 2024-05-14 13:17:38 -06:00
favicon.ts Improve quality of Typescripting (#25232) 2023-05-05 09:08:36 +01:00
languageHandler.tsx Fix broken tsc from localazy changes (#26255) 2023-09-28 14:07:29 +01:00