Fixed an error with checking settings, added analytics (why not) and proper favicon.
This commit is contained in:
BIN
public/images/favicon.png
Normal file
BIN
public/images/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user