diff --git a/example/example.dart b/example/example.dart index 97b4bfa..3bd51f7 100644 --- a/example/example.dart +++ b/example/example.dart @@ -6,7 +6,7 @@ void main() { } Future makeRequest() async { - const path = '/examples.json'; + const path = 'examples.json'; final httpRequest = HttpRequest(); httpRequest ..open('GET', path) @@ -19,8 +19,7 @@ void requestComplete(HttpRequest request) { switch (request.status) { case 200: for (var obj in json.decode(request.responseText)) { - AnchorElement link = - AnchorElement(href: '/${obj['folder']}/index.html'); + AnchorElement link = AnchorElement(href: '${obj['folder']}/index.html'); link.text = obj['title']; link.className = 'list-group-item list-group-item-action'; examples.children.add(link); diff --git a/example/index.html b/example/index.html index 5c6385c..18d4002 100644 --- a/example/index.html +++ b/example/index.html @@ -17,7 +17,8 @@

Source code

Library source code: mapbox-gl-dart

-

Examples source code: examples

+

Examples source code: examples

Examples