From 8f5ebd55daab79e2ffa963534a05b7333599ecf6 Mon Sep 17 00:00:00 2001 From: Konstantin Raev Date: Tue, 5 Jul 2016 13:25:18 -0700 Subject: [PATCH] Revert "Reverted commit D3516741" Summary: Unrevert a revert Closes https://github.com/facebook/react-native/pull/8581 Differential Revision: D3517894 Pulled By: bestander fbshipit-source-id: 19006b9c6438cf05d44ee152eb7b1b17ea4d61a0 --- react-packager/src/Server/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/react-packager/src/Server/index.js b/react-packager/src/Server/index.js index c7ab61be..dadc7379 100644 --- a/react-packager/src/Server/index.js +++ b/react-packager/src/Server/index.js @@ -499,8 +499,10 @@ class Server { const sourceUrl = frame.file; // Skip `/debuggerWorker.js` which drives remote debugging because it // does not need to symbolication. + // Skip anything except http(s), because there is no support for that yet if (!urlIndexes.hasOwnProperty(sourceUrl) && - !sourceUrl.endsWith('/debuggerWorker.js')) { + !sourceUrl.endsWith('/debuggerWorker.js') && + sourceUrl.startsWith('http')) { urlIndexes[sourceUrl] = uniqueUrls.length; uniqueUrls.push(sourceUrl); }