src/js/site.js.templ
branchpopcorn-port
changeset 795 8b69c3dbbc18
parent 764 628ae65defa7
child 814 9abad8fe5207
--- a/src/js/site.js.templ	Thu Feb 09 11:56:33 2012 +0100
+++ b/src/js/site.js.templ	Thu Feb 09 11:56:57 2012 +0100
@@ -115,12 +115,13 @@
 /*
 Override this if you want to change the info the player receives about the user.
 It's typically overrided in server-side templates with user-specific data.
+*/
+IriSP.defaults.user = function() { return {
+      "name" : "Anonymous user",
+      "avatar" : IriSP.paths.imgs + "/user_default_icon.png"
+    }
+};
 
-IriSP.user = {
-  "name" : "loic",
-  "avatar" : "http://a1.twimg.com/profile_images/39270812/loicempuria_normal.jpg"
-};
-*/
 
 IriSP.defaults.paths = {
 //  "imgs": "/tweetlive/res/metadataplayer/src/css/imgs"