Minor fix
This commit is contained in:
parent
f4e392d190
commit
5a7b6aee85
4
user.js
4
user.js
|
@ -418,7 +418,7 @@ User.prototype.initCallbacks = function() {
|
||||||
|
|
||||||
this.socket.on("savePlaylist", function(data) {
|
this.socket.on("savePlaylist", function(data) {
|
||||||
if(this.rank < 1) {
|
if(this.rank < 1) {
|
||||||
socket.emit("savePlaylist", {
|
this.socket.emit("savePlaylist", {
|
||||||
success: false,
|
success: false,
|
||||||
error: "You must be logged in to manage playlists"
|
error: "You must be logged in to manage playlists"
|
||||||
});
|
});
|
||||||
|
@ -426,7 +426,7 @@ User.prototype.initCallbacks = function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.channel == null) {
|
if(this.channel == null) {
|
||||||
socket.emit("savePlaylist", {
|
this.socket.emit("savePlaylist", {
|
||||||
success: false,
|
success: false,
|
||||||
error: "Not in a channel"
|
error: "Not in a channel"
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue