Last active
February 8, 2017 09:56
-
-
Save darky/2c0bab88daad6b940776eb4be928da68 to your computer and use it in GitHub Desktop.
Run chrome with --remote-debugging-port=9222 | Open tab with your project and there devtools | Open new tab localhost:9222 and there to devtools of devtools prev tab | Inject in Console below code | Refresh devtools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SDK.TextSourceMap.prototype._parseSources = function(sourceMap) { | |
var sourcesList = []; | |
var sourceRoot = sourceMap.sourceRoot || ''; | |
if (sourceRoot && !sourceRoot.endsWith('/')) | |
sourceRoot += '/'; | |
for (var i = 0; i < sourceMap.sources.length; ++i) { | |
var href = sourceRoot + sourceMap.sources[i]; | |
var url = Common.ParsedURL.completeURL(this._sourceMappingURL, href) || href; | |
var source = sourceMap.sourcesContent && sourceMap.sourcesContent[i]; | |
/*if (url === this._compiledURL && source) | |
url += Common.UIString(' [sm]');*/ | |
this._sourceInfos.set(url, new SDK.TextSourceMap.SourceInfo(source,null)); | |
sourcesList.push(url); | |
} | |
sourceMap[SDK.TextSourceMap._sourcesListSymbol] = sourcesList; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment