Blitz
Blitz copied to clipboard
Add auto-refresh functionality
It would be nice if the PR view could auto-refresh itself (like eg. dashboards could). Use case is if PR view is eg. used on a team screen.
Sounds like a useful feature.
This is a fairly straightforward implementation.
You can simply put a <meta http-equiv="refresh" content="30">
inside the <head>
of the html files. The iframe
will automatically refresh.
30
is the number of seconds before a refresh will occur.
Question to @pascalberger and @sierpinski:
- Should this functionality be configurable? As in you can turn the auto-refresh off and on.
- Should the number of seconds be configurable, or should it be a static number of say
600
(10 minutes)?
My opinion: 1 and 2 should be yes, if technically feasible. Your code suggestion seems like it will make this easier.