Do not depend on embedded (#59210)

This commit is contained in:
Gary Roumanis
2020-06-11 09:31:05 -07:00
committed by GitHub
parent 3be48f34f2
commit d25b9c80a4

View File

@@ -70,7 +70,8 @@ define("main_module.bootstrap", ["$entrypoint", "dart_sdk"], function(app, dart_
window.\$dartStackTraceUtility.ready = true;
let dart = dart_sdk.dart;
window.\$dartStackTraceUtility.setSourceMapProvider(function(url) {
url = url.replace(window.\$dartUriBase + '/', '');
var baseUrl = window.location.protocol + '//' + window.location.host;
url = url.replace(baseUrl + '/', '');
if (url == 'dart_sdk.js') {
return dart.getSourceMap('dart_sdk');
}