OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2013 The Native Client Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
| 7 /* globals NaClTerm, lib */ |
| 8 |
7 'use strict'; | 9 'use strict'; |
8 | 10 |
9 NaClTerm.nmf = 'civetweb.nmf' | 11 NaClTerm.nmf = 'civetweb.nmf'; |
10 | 12 |
11 lib.rtdep('lib.f') | 13 lib.rtdep('lib.f'); |
12 | 14 |
13 window.onload = function() { | 15 window.onload = function() { |
14 lib.init(function() { | 16 lib.init(function() { |
15 navigator.webkitPersistentStorage.requestQuota( | 17 navigator.webkitPersistentStorage.requestQuota( |
16 1024*1024, | 18 1024*1024, |
17 function(grantedBytes) { | 19 function(grantedBytes) { |
18 NaClTerm.init(); | 20 NaClTerm.init(); |
19 }, | 21 }, |
20 function(e) { console.log('Error', e); } | 22 function(e) { console.log('Error', e); } |
21 ); | 23 ); |
22 }); | 24 }); |
23 }; | 25 }; |
OLD | NEW |