Bug 1110964 - Convert all json files that are not purely json into js files as requested by AMO reviewer
This commit is contained in:
Родитель
f0c8a015e2
Коммит
a6b3b09b0d
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -78,7 +78,7 @@ WorkerFactory.prototype = {
|
|||
try {
|
||||
let scriptLoader = Cc["@mozilla.org/moz/jssubscript-loader;1"].getService(Ci.mozIJSSubScriptLoader);
|
||||
let {mainTaxonomyModel} = this._interestLocaleData;
|
||||
scriptLoader.loadSubScript(data.url("models/" + this._localeCode + "/" + mainTaxonomyModel + "/localizedInterests.json"));
|
||||
scriptLoader.loadSubScript(data.url("models/" + this._localeCode + "/" + mainTaxonomyModel + "/localizedInterests.js"));
|
||||
this._interestLocaleData.localizedInterests = localizedInterests;
|
||||
}
|
||||
catch (e) {
|
||||
|
@ -87,10 +87,10 @@ WorkerFactory.prototype = {
|
|||
|
||||
_setupInterestsWorker: function(modelName) {
|
||||
let scriptLoader = Cc["@mozilla.org/moz/jssubscript-loader;1"].getService(Ci.mozIJSSubScriptLoader);
|
||||
scriptLoader.loadSubScript(data.url("models/" + this._localeCode + "/" + modelName + "/domainRules.json"));
|
||||
scriptLoader.loadSubScript(data.url("models/" + this._localeCode + "/" + modelName + "/textModel.json"));
|
||||
scriptLoader.loadSubScript(data.url("models/" + this._localeCode + "/" + modelName + "/domainRules.js"));
|
||||
scriptLoader.loadSubScript(data.url("models/" + this._localeCode + "/" + modelName + "/textModel.js"));
|
||||
// use the same url stop words
|
||||
scriptLoader.loadSubScript(data.url("models/urlStopwords.json"));
|
||||
scriptLoader.loadSubScript(data.url("models/urlStopwords.js"));
|
||||
scriptLoader.loadSubScript(data.url("words.js"));
|
||||
scriptLoader.loadSubScript(data.url("rules.js"));
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче