diff options
Diffstat (limited to 'lib/script_entries/scripts_cache.js')
-rw-r--r-- | lib/script_entries/scripts_cache.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/script_entries/scripts_cache.js b/lib/script_entries/scripts_cache.js index 47ab069..52ae33f 100644 --- a/lib/script_entries/scripts_cache.js +++ b/lib/script_entries/scripts_cache.js @@ -19,14 +19,14 @@ * You should have received a copy of the GNU General Public License * along with GNU LibreJS. If not, see <http://www.gnu.org/licenses/>. */ -var relationCheckerObj = require("js_checker/relation_checker") +var relationCheckerObj = require("../js_checker/relation_checker") .relationChecker; // import free_libraries to populate the cache hash map. -var free_libraries = require("script_entries/free_libraries"); +var free_libraries = require("../script_entries/free_libraries"); -var crypto = require('script_entries/crypto'); -const checkTypes = require("js_checker/constant_types").checkTypes; +var crypto = require('./crypto'); +const checkTypes = require("../js_checker/constant_types").checkTypes; // cachedResults contains objects with result/relationChecker for // scripts entries indexed by SHA1sum @@ -40,7 +40,8 @@ var ScriptsCached = function() { }; ScriptsCached.prototype.getHash = function(scriptText) { - require('ui/notification').createNotification(scriptText.substring(0,100)); + require('../ui/notification').createNotification( + scriptText.substring(0,100)); return crypto.sha1Encrypt(scriptText); }; |