This commit is contained in:
Julian Lam
2013-08-11 16:41:49 -04:00
parent f4573d23b5
commit 4457228903
2 changed files with 11 additions and 0 deletions

View File

@@ -124,6 +124,15 @@
}
return tags;
},
refreshTitle: function() {
var a = document.createElement('a');
a.href = document.location;
socket.emit('api:meta.buildTitle', a.pathname.slice(1), function(title) {
document.title = title;
});
}
}