mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Do not depend on embedded (#59210)
This commit is contained in:
parent
3be48f34f2
commit
d25b9c80a4
@ -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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user