Skip to content

Commit

Permalink
Bug 905831 - Use correct default configuration
Browse files Browse the repository at this point in the history
When the user has an unsupported carrier, we use a default search
engine, so we need to pass the callback this configuration. This commits
fixes the issue by passing the callback the search engine configuration
at [DEFAULT_MCC + DEFAULT_MNC] in the 'data' structure, instead of
pasing (DEFAULT_MCC + DEFAULT_MNC) to callback.
  • Loading branch information
lissyx committed Aug 23, 2013
1 parent b8c3070 commit 56f032f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/browser/js/browser.js
Expand Up @@ -282,7 +282,7 @@ var Browser = {
} else if (data[mccCode + DEFAULT_MNC]) {
callback(data[mccCode + DEFAULT_MNC]);
} else if (data[DEFAULT_MCC + DEFAULT_MNC]) {
callback(DEFAULT_MCC + DEFAULT_MNC);
callback(data[DEFAULT_MCC + DEFAULT_MNC]);
} else {
callback(null);
console.error('No configuration data found.');
Expand Down

0 comments on commit 56f032f

Please sign in to comment.