Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename 'test' socket event to 'navigate'.

  • Loading branch information...
commit e8ac2e15637894b088d3c5102e287c1414979d2a 1 parent 1e6a5d4
@reid authored
View
4 lib/hub/agent.js
@@ -78,11 +78,11 @@ Agent.prototype.connect = function (socket) {
Agent.prototype.next = function () {
if (this.urlQueue.length) {
- this.socketEmitter.emit("test", this.urlQueue.shift());
+ this.socketEmitter.emit("navigate", this.urlQueue.shift());
this.waiting = false;
} else {
this.waiting = true;
- this.socketEmitter.emit("test", this.manager.hub.mountpoint);
+ this.socketEmitter.emit("navigate", this.manager.hub.mountpoint);
this.emit("complete");
}
View
3  lib/hub/view/public/capture.js
@@ -27,9 +27,8 @@ var Yeti = {
document.getElementById("test").innerHTML = "All set!";
});
- socket.on("test", function (test) {
+ socket.on("navigate", function (test) {
document.location.href = test;
- //console.log("got test", test);
});
});
}
View
3  lib/hub/view/public/inject.js
@@ -37,8 +37,7 @@ function $yetify(firstRunConfiguration) {
return true;
};
- // TODO rename to navigate
- socket.on("test", function (test) {
+ socket.on("navigate", function (test) {
document.location.href = test;
});
Please sign in to comment.
Something went wrong with that request. Please try again.