Skip to content

Commit

Permalink
settings issue on server
Browse files Browse the repository at this point in the history
  • Loading branch information
enjalot committed Jan 28, 2013
1 parent 50fbb64 commit b17dcf5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions example-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ var settings = module.exports;

settings.port = 8888;
settings.hostname = "localhost";
//on port 80 you don't want to specify the port, so settings.origin would be "http://tributary.io" for example
settings.origin = "http://" + settings.hostname + ":" + settings.port;
settings.sandboxOrigin = "http://sandbox." + settings.hostname + ":" + settings.port;

Expand Down
2 changes: 1 addition & 1 deletion src/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var parentWindow;
window.addEventListener("message", recieveMessage, false)

function recieveMessage(event) {
console.log(event.origin, tributary._origin, event.data);
//console.log(event.origin, tributary._origin, event.data);
if(event.origin !== tributary._origin || !event.data) return;
var data = event.data;

Expand Down
1 change: 0 additions & 1 deletion static/tributary.js
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,6 @@ var Tributary = function() {
var parentWindow;
window.addEventListener("message", recieveMessage, false);
function recieveMessage(event) {
console.log(event.origin, tributary._origin, event.data);
if (event.origin !== tributary._origin || !event.data) return;
var data = event.data;
if (data.request === "load") {
Expand Down
Loading

0 comments on commit b17dcf5

Please sign in to comment.