Skip to content

Commit

Permalink
fix CORS for safari/ie
Browse files Browse the repository at this point in the history
  • Loading branch information
traceypooh authored and db48x committed May 1, 2015
1 parent 0c1326b commit 1d91bfd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,13 @@ var Module = null;
};

// NOTE: deliberately use cors.archive.org since this will 302 rewrite to iaXXXXX.us.archive.org/XX/items/...
// and need to keep that "artificial" extra domain-ish name to avoid CORS issues with IE/Safari
// and need to keep that "artificial" extra domain-ish name to avoid CORS issues with IE/Safari (tracey@archive)
var get_emulator_config_url = function (module) {
return '//archive.org/cors/jsmess_engine_v2/' + module + '.json';
return '//cors.archive.org/cors/jsmess_engine_v2/' + module + '.json';
};

var get_other_emulator_config_url = function (module) {
return '//archive.org/cors/jsmess_config_v2/' + module + '.cfg';
return '//cors.archive.org/cors/jsmess_config_v2/' + module + '.cfg';
};

var get_meta_url = function (game_path) {
Expand Down

0 comments on commit 1d91bfd

Please sign in to comment.