Comments (4)
on second thought, this is more complex than just refreshing - I want people to be able to play offline on their phones, it's okay to let the page go out of date if there's no connection. maybe ping to test for connectivity first.
in fact, we can treat this like any other autoupdater: periodically ask the server what the current version is ($interval $http.get /version.txt), and then
- do nothing if the server doesn't respond
- do nothing if we're up-to-date already
- refresh the page if the server is available and responds that we're out of date
from swarm.
I said reopen
from swarm.
auto-update pings are combined with timecheck pings, so no new traffic added for this.
if we're offline, it'll give up and do nothing.
from swarm.
the appcache mechanism in #388 caters for some of this. allowing offline access.. notification of new version etc..
from swarm.
Related Issues (20)
- document house of mirrors/achievements interaction
- HTML-formatted news posts. "welcome to 1.1.0" news post.
- crystals: confirm kongregate works HOT 1
- iOS 10.3.1 update HOT 3
- Scrollbar appears when clicking "More" HOT 3
- Icon doesn't work HOT 3
- Received twice as many crystals as purchased HOT 1
- install.sh fails on Ubuntu 17.10 HOT 1
- swarmsim.github.io is unresponsive HOT 1
- Bats / Bat Mutagen apply without having Bats.. HOT 1
- Goes Nonresponsive Upon Reopening in Chrome 70.0.3538.110 HOT 1
- Swarmsim is my all-time favorite!
- High CPU usage HOT 6
- ./install.sh on Ubuntu 18.04 HOT 2
- [Suggestion] Ruby-less Compass.
- swarmsim imports without prompting for confirmation
- Please Help HOT 3
- bat mutation doesn't affect house of mirrors (and so not all powers)
- [QUESTION] Where can I find all text files to translate?
- Request: Make acceleration from Hive to getting a Hive Queen
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swarm.