mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Make fetch work in the DOM-less world
R=eseidel@chromium.org, ianh@google.com Review URL: https://codereview.chromium.org/1166953005
This commit is contained in:
parent
b3a9abd09b
commit
bd7af16cf5
@ -4,7 +4,6 @@
|
||||
|
||||
import '../shell.dart' as shell;
|
||||
import 'dart:async';
|
||||
import 'dart:sky' as sky;
|
||||
import 'dart:typed_data';
|
||||
import 'package:mojo/core.dart' as core;
|
||||
import 'package:mojom/mojo/network_service.mojom.dart';
|
||||
@ -22,7 +21,7 @@ class Response {
|
||||
}
|
||||
|
||||
Future<Response> fetch(String relativeUrl) async {
|
||||
String url = new sky.URL(relativeUrl, sky.document.baseURI).href;
|
||||
String url = Uri.base.resolve(relativeUrl).toString();
|
||||
|
||||
var net = new NetworkServiceProxy.unbound();
|
||||
shell.requestService("mojo:network_service", net);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user