lbry-desktop/web
infinite-persistence 5638f64831
New version nudge (#1793)
## Ticket
1329

The existing nudge to refresh the webpage only happens when the app cannot find the specific javascript file in the server. As we don't purge the files on each build, the browser typically uses the cached version of the app, which could be weeks behind (based on the error logs).

## Approach
Poll the current version periodically (set to 1 hour for now) and invoke the nudge when a newer version is detected.

We typically don't need to bump `MINIMUM_VERSION` unless there is an urgent need to make users move away from older versions (e.g. API changes, mistakes, etc.)

## Trade-offs
Wanted to put the value in a separate file called `.min.version` so that the env's history won't be polluted with version bumps, but not sure how to implement with minimal code without having to read from the file. Getting from the env is the easiest to implement (per my limited knowledge).
2022-07-05 09:14:32 -04:00
..
component Revert "Undo the hardcoded ad div id (#1719)" (#1722) 2022-06-21 06:12:47 -04:00
effects [oEmbed] some changes and fixes (#392) 2021-12-01 10:36:52 -05:00
middleware Add cookie spaceman to gdpr banner (#1651) 2022-06-13 15:29:13 +02:00
page remove section about hosting content 2022-05-09 10:18:36 -04:00
setup tus: don't allow 'notify' to be sent again (#1778) 2022-06-30 19:30:08 -04:00
src New version nudge (#1793) 2022-07-05 09:14:32 -04:00
static/pwa Update PWA manifest 2022-04-05 19:14:58 +02:00
stubs rename lbrytv to web 2020-05-25 17:21:02 -04:00
bundle-id.js fix uuid import with new version 2020-10-02 14:36:22 -04:00
index.js MAKE ODYSEE EVEN MORE BEAUTIFUL (#539) 2022-02-11 13:50:55 -05:00
lbry.js Revert "Temporarily prevent invalid get calls until we figure it out" (#1529) 2022-05-18 20:37:53 -04:00
package.json More cleanup 2022-01-31 11:39:03 -05:00
webpack.config.js Add 'announcement' to v2 homepage api 2022-05-20 00:04:05 +08:00
webpack.sw.config.js Browser push notifications (#133) 2021-10-27 10:38:10 -04:00
yarn.lock Bump protobufjs from 6.11.2 to 6.11.3 in /web 2022-06-03 01:57:01 -04:00