Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
raw xhr get might help?
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Anderson committed May 19, 2014
1 parent 77f2aec commit 6e6371a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,12 @@ function setupConfig(done) {
cblite.getURL(function(err, url) {
console.log("getURL: " + JSON.stringify([err, url]))
if (err) {return done(err)}

var xmlHttp = new XMLHttpRequest()
xmlHttp.open( 'GET', url, false )
xmlHttp.send( null )
console.log( 'XMLHttpRequest get: ' + xmlHttp.responseText )

window.server = coax(url);
var db = coax([url, appDbName]);
setupDb(db, function(err, info){
Expand Down

0 comments on commit 6e6371a

Please sign in to comment.