diff options
Diffstat (limited to 'lib/html_script_finder/web_labels')
-rw-r--r-- | lib/html_script_finder/web_labels/js_web_labels.js | 11 | ||||
-rw-r--r-- | lib/html_script_finder/web_labels/script_hash_worker.js | 7 |
2 files changed, 9 insertions, 9 deletions
diff --git a/lib/html_script_finder/web_labels/js_web_labels.js b/lib/html_script_finder/web_labels/js_web_labels.js index 510852b..e428d41 100644 --- a/lib/html_script_finder/web_labels/js_web_labels.js +++ b/lib/html_script_finder/web_labels/js_web_labels.js @@ -22,19 +22,18 @@ // node.js url module. Makes it easier to resolve // urls in that datauri loaded dom -var urlHandler = require("url_handler/url_handler"); +var urlHandler = require("../../url_handler/url_handler"); var {Cc, Ci, Cu, Cm, Cr} = require("chrome"); var data = require("sdk/self").data; // license definitions, we are using canonical urls and license // identifiers. -var licenses = require('js_checker/license_definitions').licenses; +var licenses = require('../../js_checker/license_definitions').licenses; -var getLicenseList = require('html_script_finder/web_labels/find_js_labels') - .getLicenseList; -const types = require("js_checker/constant_types"); +var getLicenseList = require('./find_js_labels').getLicenseList; +const types = require("../../js_checker/constant_types"); -const addToCache = require("html_script_finder/web_labels/script_hash_worker") +const addToCache = require("./script_hash_worker") .addToCache; // keep web labels in memory so that they can be checked even when they diff --git a/lib/html_script_finder/web_labels/script_hash_worker.js b/lib/html_script_finder/web_labels/script_hash_worker.js index 92ffb82..4ed9d21 100644 --- a/lib/html_script_finder/web_labels/script_hash_worker.js +++ b/lib/html_script_finder/web_labels/script_hash_worker.js @@ -20,9 +20,10 @@ * along with GNU LibreJS. If not, see <http://www.gnu.org/licenses/>. */ -const types = require("js_checker/constant_types"); -const scriptsCached = require("script_entries/scripts_cache").scriptsCached; -const xhr = require('html_script_finder/dom_handler/dom_checker').xhr; +const types = require("../../js_checker/constant_types"); +const scriptsCached = require("../../script_entries/scripts_cache") + .scriptsCached; +const xhr = require('../dom_handler/dom_checker').xhr; const timers = require("sdk/timers"); exports.addToCache = function (lic, delay, jsWebLabelsURL, callback) { |