From bdebe575b7d5faeafcc2b99f598904328bfa2fbd Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 8 Oct 2014 10:09:51 -0700 Subject: [PATCH] :lipstick: Use regular require paths --- static/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/static/index.js b/static/index.js index 3304edb8c..073d8d7d3 100644 --- a/static/index.js +++ b/static/index.js @@ -1,5 +1,4 @@ window.onload = function() { - var path = require('path'); var ipc = require('ipc'); try { // Skip "?loadSettings=". @@ -16,9 +15,9 @@ window.onload = function() { require('vm-compatibility-layer'); require('coffee-script').register(); - require(path.resolve(__dirname, '..', 'src', 'coffee-cache')).register(); + require('../src/coffee-cache')).register(); - ModuleCache = require(path.resolve(__dirname, '..', 'src', 'module-cache')); + ModuleCache = require('../src/module-cache'); ModuleCache.add(loadSettings.resourcePath); ModuleCache.register();