Move 'new version' support into Platform
This commit is contained in:
parent
a714edbf2b
commit
64fdb290eb
4 changed files with 86 additions and 59 deletions
|
@ -113,10 +113,6 @@ function onHashChange(ev) {
|
|||
routeUrl(window.location);
|
||||
}
|
||||
|
||||
function onVersion(current, latest) {
|
||||
window.matrixChat.onVersion(current, latest);
|
||||
}
|
||||
|
||||
var loaded = false;
|
||||
var lastLoadedScreen = null;
|
||||
|
||||
|
@ -165,8 +161,7 @@ window.onload = function() {
|
|||
if (!validBrowser) {
|
||||
return;
|
||||
}
|
||||
UpdateChecker.setVersionListener(onVersion);
|
||||
UpdateChecker.run();
|
||||
UpdateChecker.start();
|
||||
routeUrl(window.location);
|
||||
loaded = true;
|
||||
if (lastLoadedScreen) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue