From 964822ed420618d8fd75cd0843424ead5d6fb159 Mon Sep 17 00:00:00 2001 From: Peter Grassberger Date: Thu, 21 Apr 2016 21:42:17 +0200 Subject: init clock diff --git a/www/js/clock.js b/www/js/clock.js index eb04eed..3562b1e 100644 --- a/www/js/clock.js +++ b/www/js/clock.js @@ -109,12 +109,6 @@ function Clock() { }; } -var clock = new Clock(); - -function clock_init() { - clock.start(); -} - function clock_add_callback(cb) { clock.addCallback(cb); } diff --git a/www/js/router.js b/www/js/router.js index e3ab4e5..62b9a77 100644 --- a/www/js/router.js +++ b/www/js/router.js @@ -22,12 +22,15 @@ 'use strict'; +var clock = null; var auth = null; var router = null; var importer = null; var rdxport = null; $(document).ready(function() { + clock = new Clock(); + clock.start(); auth = new Rdxport.Auth(); router = new Rdxport.Router(auth); router.route(); -- cgit v0.10.2