Unverified Commit d25b9c80 authored by Gary Roumanis's avatar Gary Roumanis Committed by GitHub

Do not depend on embedded (#59210)

parent 3be48f34
...@@ -70,7 +70,8 @@ define("main_module.bootstrap", ["$entrypoint", "dart_sdk"], function(app, dart_ ...@@ -70,7 +70,8 @@ define("main_module.bootstrap", ["$entrypoint", "dart_sdk"], function(app, dart_
window.\$dartStackTraceUtility.ready = true; window.\$dartStackTraceUtility.ready = true;
let dart = dart_sdk.dart; let dart = dart_sdk.dart;
window.\$dartStackTraceUtility.setSourceMapProvider(function(url) { 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') { if (url == 'dart_sdk.js') {
return dart.getSourceMap('dart_sdk'); return dart.getSourceMap('dart_sdk');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment