Tried to fix the background loading issue

This commit is contained in:
Yord 2015-05-02 14:07:46 +02:00
parent d70129e0df
commit 69837fca81

View file

@ -80,6 +80,7 @@
}); });
} }
$(function() {
db.get("bg", function(error, bg) { db.get("bg", function(error, bg) {
if(error) { if(error) {
bg = { bg = {
@ -91,6 +92,7 @@
} }
changeBackground(bg.name, bg.topX); changeBackground(bg.name, bg.topX);
}); });
});
</script> </script>
</body> </body>
</html> </html>