Commit Graph

40 Commits (6d056d7a084dd4f2e3cc2621c974e5e4af76af8f)

Author SHA1 Message Date
Travis Ralston a76c4ae943 Disable rageshake persistence if no logs would be submitted
This also delays the persistence until later in the app startup - this is fine for the reasons listed on the partner PR: https://github.com/matrix-org/matrix-react-sdk/pull/5767

Fixes https://github.com/vector-im/element-web/issues/16694
2021-03-16 14:22:06 -06:00
J. Ryan Stinnett 27a92a5c89 Add RegExp dotAll feature test
As mentioned in
https://github.com/vector-im/element-web/issues/16020#issuecomment-774384598,
we're depending on the `dotAll` / `s` regex feature. This adds a test so
browsers without this see an error screen.
2021-02-08 16:44:59 +00:00
J. Ryan Stinnett 0f3623393f Fix typing errors after upgrades 2021-01-27 14:35:02 +00:00
J. Ryan Stinnett e077d9ca5f Move service worker into platform 2021-01-15 12:25:21 +00:00
J. Ryan Stinnett 87e67d8168 Skip the service worker for Electron
At the moment, there's no point in installing the empty service worker on
Electron.

Fixes https://github.com/vector-im/element-web/issues/16008
2021-01-15 11:05:27 +00:00
Travis Ralston d0b9b211c9 Fix an important semicolon 2020-12-07 14:46:56 -07:00
J. Ryan Stinnett d8e0ea5791 Include KaTeX CSS as a dependency
This changes the KaTeX CSS inclusion to function just like the other bits of the
CSS that we import from dependencies.
2020-11-27 12:18:24 +00:00
Michael Telatynski cfee4c925a Revert "Attempt to fix tests some more"
This reverts commit c76a5f2c

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-10-01 14:05:07 +01:00
Michael Telatynski 1edbe36547 Revert "Tidy up Service Worker, only run Workbox in production"
This reverts commit c47532fe

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-10-01 14:04:32 +01:00
Qt Resynth 10d6fbaef7
Update Riot -> Element in index.ts 2020-09-30 11:10:35 +00:00
Michael Telatynski c47532fe2a Tidy up Service Worker, only run Workbox in production
Moves ServiceWorker load into Platform so its not done by Electron

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-09-24 13:01:34 +01:00
Michael Telatynski c76a5f2c52 Attempt to fix tests some more 2020-09-15 13:19:47 +01:00
Jorik Schellekens 9bb1f99bd9 Confiure eslint package and fix lint issues 2020-07-21 11:30:28 +01:00
J. Ryan Stinnett ffab08bd60 Update various brand instances in code 2020-07-13 17:32:17 +01:00
J. Ryan Stinnett 5b31589b3a Use brand name from config in all strings 2020-07-13 14:12:44 +01:00
Michael Telatynski ba1c6df418 enable iframe sandboxing for the error fallback
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-28 00:42:36 +01:00
Michael Telatynski 0032d7b943 fix
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-23 15:55:13 +01:00
Michael Telatynski dda1f8454a fix supported browser logic
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-23 15:50:06 +01:00
Michael Telatynski b7fa8a1f54 wire up the static fallback error pages
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-23 13:37:25 +01:00
Michael Telatynski 36f55c1630 Allow rageshake to fail in init
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-14 14:44:12 +01:00
Michael Telatynski c67dcae35e improve comments
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-09 11:25:40 +01:00
Michael Telatynski 83653b3a22 assert rageshake loaded successfully
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-09 11:14:38 +01:00
Michael Telatynski e1bdcf2d9e remove debug statement
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-09 10:49:50 +01:00
Michael Telatynski 8c88e9f0f4 delint and i18n
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-09 10:42:58 +01:00
Michael Telatynski 0572d62c88 extract app load error handler from app.js
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-09 10:32:04 +01:00
Michael Telatynski 343d4ea641 small tweaks
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-08 21:49:27 +01:00
Michael Telatynski cc939f9645 extract browser compatibility error handling out of app.js
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-08 21:41:22 +01:00
Michael Telatynski f6ad5bf54c let settled accept multiple proms + i18n
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-08 20:12:05 +01:00
Michael Telatynski 2837c41ca4 factor out config error handling
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-08 20:03:45 +01:00
Michael Telatynski 4954c732ee extract config error handling out of app.js
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-08 19:47:52 +01:00
Michael Telatynski 7633009ddb clean up loadConfig
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-08 19:35:16 +01:00
Michael Telatynski e267086a17 Parallelize loadSkin
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-08 19:21:39 +01:00
Michael Telatynski 7113fe7e31 comments
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-08 16:24:40 +01:00
Michael Telatynski 719865c033 parallel load language and theme
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-08 16:17:46 +01:00
Michael Telatynski 2c5664b76e move config loading into index for parallelism
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-08 16:12:36 +01:00
Michael Telatynski 43357fe842 reorder
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-08 16:10:44 +01:00
Michael Telatynski 6222546e20 prepare platform earlier
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-08 16:09:47 +01:00
Michael Telatynski 0b032d7434 loadOlm earlier
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-08 16:08:39 +01:00
Michael Telatynski b1575524aa Switch things to typescript, use @types/modernizr, fix global.d.ts. Move mobile_guide redirect to index.ts
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-05 00:55:36 +01:00
Michael Telatynski 093b7bbf72 convert index.js to typescript
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-05 00:27:59 +01:00