mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-10 18:05:26 +08:00
Packager: Options Cleanup
Reviewed By: matryoshcow Differential Revision: D4235221 fbshipit-source-id: 6930a106ed02bec1d77a790641c3dcad46c779b9
This commit is contained in:
committed by
Facebook Github Bot
parent
c858420b2d
commit
ebc65cecd6
@@ -10,11 +10,11 @@
|
||||
|
||||
const launchEditor = require('../util/launchEditor');
|
||||
|
||||
module.exports = function(args) {
|
||||
module.exports = function({projectRoots}) {
|
||||
return function(req, res, next) {
|
||||
if (req.url === '/open-stack-frame') {
|
||||
var frame = JSON.parse(req.rawBody);
|
||||
launchEditor(frame.file, frame.lineNumber, args['projectRoots']);
|
||||
const frame = JSON.parse(req.rawBody);
|
||||
launchEditor(frame.file, frame.lineNumber, projectRoots);
|
||||
res.end('OK');
|
||||
} else {
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user