Skip to content

Commit

Permalink
just make a <script> tag instead of using dojo.io.script, references #…
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Jun 6, 2012
1 parent 148ad0b commit b83ea65
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions js/Browser.js
Expand Up @@ -291,13 +291,15 @@ Browser.prototype.reportUsageStats = function() {
( stats.tracks.types[ type ] || 0 ) + 1;
});

dojo.require('dojo.io.script');
dojo.io.script.get({
url: 'http://jbrowse.org/analytics/clientReport',
content: { stats: dojo.toJson(stats) },
callbackParamName: null,
failOk: true
});
// phone home with a GET request made by a script tag
dojo.create(
'script',
{ type: 'text/javascript',
src: 'http://jbrowse.org/analytics/clientReport?'
+ dojo.objectToQuery({ stats: dojo.toJson(stats) })
},
document.head
);
};

Browser.prototype.publish = function() {
Expand Down

0 comments on commit b83ea65

Please sign in to comment.