Skip to content

Commit

Permalink
tastejs#585 - add hostname check for cross-origin warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed May 31, 2013
1 parent ff32a65 commit f7efd9a
Show file tree
Hide file tree
Showing 61 changed files with 236 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
}

function getFile(file, callback) {
if (!location.host) {
return;
}

var xhr = new XMLHttpRequest();

xhr.open('GET', findRoot() + file, true);
Expand Down
Loading

0 comments on commit f7efd9a

Please sign in to comment.