Skip to content

Commit

Permalink
[Patch] Fix injectDevToolsMiddleware.path
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Jun 15, 2016
1 parent 3ca1fcb commit dc699c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patch/lib/injectDevToolsMiddleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exports.file = 'getDevToolsMiddleware.js';
exports.path = path.join(exports.dir, exports.file);

exports.inject = modulePath => {
const filePath = path.join(modulePath, exports.fullPath);
const filePath = path.join(modulePath, exports.path);
if (!fs.existsSync(filePath)) return false;

const code = [
Expand Down Expand Up @@ -56,7 +56,7 @@ exports.inject = modulePath => {
};

exports.revert = modulePath => {
const filePath = path.join(modulePath, exports.fullPath);
const filePath = path.join(modulePath, exports.path);
if (!fs.existsSync(filePath)) return false;

const middlewareCode = fs.readFileSync(filePath, 'utf-8');
Expand Down

0 comments on commit dc699c7

Please sign in to comment.