From 46e880a3a7bd9c6a9d15b6ad17adfdbc23cdcb24 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 --- packager/react-packager/src/Server/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packager/react-packager/src/Server/index.js b/packager/react-packager/src/Server/index.js index c7ab61bee..dadc7379c 100644 --- a/packager/react-packager/src/Server/index.js +++ b/packager/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); }