Fixed an error with checking settings, added analytics (why not) and proper favicon.

This commit is contained in:
Jason Brown
2014-06-11 01:06:46 -05:00
parent 9ec5e2a639
commit c82d6eb932
3 changed files with 16 additions and 3 deletions

BIN
public/images/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -260,12 +260,15 @@ var settings = {
if (hash){
userSettings = JSON.parse(hash);
document.title = userSettings.title || settings.title;
settings.color = userSettings.color || settings.color;
if(userSettings && userSettings.title !== undefined){
document.title = userSettings.title;
}
if(typeof userSettings.gui !== undefined){
if(userSettings && userSettings.gui !== undefined){
settings.gui = userSettings.gui;
}
settings.color = userSettings.color || settings.color;
}
var adjustCanvas = function(){