Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: examples/js/wget.js

Issue 821403003: Changes magic sequence to '!#mojo ' and strips 'mojo ' when building url (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: two more Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « examples/js/users-guide.md ('k') | examples/js/world.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!mojo:js_content_handler 1 #!mojo mojo:js_content_handler
2 // Demonstrate use of the Mojo network service to load a URL. To run this 2 // Demonstrate use of the Mojo network service to load a URL. To run this
3 // application with mojo_shell, set DIR to be the absolute path for this 3 // application with mojo_shell, set DIR to be the absolute path for this
4 // directory, then: 4 // directory, then:
5 // mojo_shell "file://$DIR/wget.js http://www.google.com" 5 // mojo_shell "file://$DIR/wget.js http://www.google.com"
6 // Substitute any URL for google.com. To keep the noise down, this app 6 // Substitute any URL for google.com. To keep the noise down, this app
7 // only displays the number of bytes read and a little http header info. 7 // only displays the number of bytes read and a little http header info.
8 8
9 define("main", [ 9 define("main", [
10 "console", 10 "console",
11 "mojo/services/public/js/application", 11 "mojo/services/public/js/application",
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 }) 51 })
52 .then(function() { 52 .then(function() {
53 app.quit(); 53 app.quit();
54 }); 54 });
55 }); 55 });
56 } 56 }
57 } 57 }
58 58
59 return WGet; 59 return WGet;
60 }); 60 });
OLDNEW
« no previous file with comments | « examples/js/users-guide.md ('k') | examples/js/world.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698